[Home] [By Thread] [By Date] [Recent Entries]


> 
> BTW, what is actually the proposed standard way of doing that (node to
> string)? You could write "data($title)", "$title//text()",
> "string($title)". 

data() gives you the typed value, string() gives you the string value: for a
node with simple content in a schema-less document, the answer is the same.

text() is bad practice, because it's likely to give wrong answers or fail
the first time someone puts a comment in the source document.

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



Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member