Oxygen XML Editor
 
[XML-DEV Mailing List Archive Home] [By Thread] [By Date]

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/



 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor