xsl-list
[Top] [All Lists]

RE: [xsl] how to xpath the *value* of an attribute based on value of other attribute in same element

2009-07-01 14:20:45
Turns out you are right - I had been using oxygen's xpath 
evaluator and it kept returning the whole node rather than 
the attribute value I wanted, and I perhaps foolishly trusted 
to that. 

In fact your expressions do return the attribute node, not the contents of
the node. But if you use an expression whose value is a node in a context
where a value is expected, then the "value of the node" is extracted
automatically. XPath 2.0 calls this process "atomization".

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--