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
Cc:
Message-Id: <E1DMAyP-0007w5-Rh@wiggum.w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:37 GMT