RE: [xml-dev] combining XML documents

From
Michael Kay <>
To
'Martin Probst' <>,
Date
2005-11-25T23:13:35
Thread
RE: [xml-dev] combining XML documents
> 
> 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/