OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] combining XML documents

[ Lists Home | Date Index | Thread Index ]

> 
> 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/






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS