W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2003

Re: May XPath section 3.2: / and //

From: <Svgdeveloper@aol.com>
Date: Tue, 6 May 2003 08:32:52 EDT
Message-ID: <bc.379fafb2.2be90574@aol.com>
To: public-qt-comments@w3.org
In a message dated 06/05/2003 13:07:49 GMT Daylight Time, davidc@nag.co.uk 
writes:


>   A "/" at the beginning of a path expression is an abbreviation for the
>   initial step fn:root(self::node()). The effect of this initial step is
>   to begin the path at the root node of the tree that contains the context
>   node. If the context item is not a node, a type error is raised. 

David,

I was a little surprised to see the term "root node" used in the above quote 
from 3.2. Isn't XPath 1.0 "root node" now "document node" in XPath 2.0?

Or is "root node" in XPath 2.0 now being used to mean both document node and 
whatever other node type fn:root() can return (cf F&O 14.1.9)?

Andrew Watt
Received on Tuesday, 6 May 2003 08:33:04 GMT

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