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

RE: May XPath section 3.2: / and //

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Wed, 7 May 2003 08:20:36 +0200
Message-ID: <DFF2AC9E3583D511A21F0008C7E62106073DCDEF@daemsg02.software-ag.de>
To: Svgdeveloper@aol.com, public-qt-comments@w3.org
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
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

  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. 


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

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