RE: May XPath section 3.2: / and //

In the XPath 2.0 data model, any node can be parentless, and any parentless
node is considered to be the root of a tree, whether or not it is a document
node.
 
Michael Kay

-----Original Message-----
From: Svgdeveloper@aol.com [mailto:Svgdeveloper@aol.com] 
Sent: 06 May 2003 13:33
To: public-qt-comments@w3.org
Subject: 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 Wednesday, 7 May 2003 02:20:42 UTC