W3C home > Mailing lists > Public > public-qt-comments@w3.org > April 2005

[Bug 1250] [XQuery] the typed value of a document node

From: <bugzilla@wiggum.w3.org>
Date: Thu, 14 Apr 2005 20:30:01 +0000
To: public-qt-comments@w3.org
Message-Id: <E1DMAyP-0007w5-Rh@wiggum.w3.org>


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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:23 UTC