- From: <bugzilla@wiggum.w3.org>
- Date: Thu, 14 Apr 2005 20:30:01 +0000
- To: public-qt-comments@w3.org
- Cc:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=1250 ------- Additional Comments From mike@saxonica.com 2005-04-14 20:30 ------- Responding to this question: >Does the two XQuery expressions >fn:doc($uri as xs:string?) as document-node()? >document { expr } >return the same type of document node? Yes, both expressions return a document node and the operations available on the resulting document nodes are identical. In both cases, for example, you can use a path expression $d//* to find all the element nodes within the document, and in both cases you can use string($d) to get the string-value of the document node, that is, the concatenation of its contained text nodes. Michael Kay
Received on Thursday, 14 April 2005 20:30:02 UTC