Re: May XPath section 3.2: / and //

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 UTC