W3C home > Mailing lists > Public > www-forms@w3.org > April 2007

Re: <repeat/> Element

From: Erik Bruchez <ebruchez@orbeon.com>
Date: Wed, 18 Apr 2007 11:14:33 +0800
Message-ID: <46258D19.8090609@orbeon.com>
To: www-forms@w3.org

>> 1) Please read the XPath data model again.  The document element (color in your example below) has a parent.
>> It's just not an element.
> "Every node other than the root node has exactly one parent" ...

Ivan, you are mixing-up "document element" and "root node". See the 
following in the XPath spec (emphasis mine):

"The root node is the root of the tree. A root node does not occur 
except as the root of the tree. *The element node for the document 
element is a child of the root node*. The root node also has as children 
processing instruction and comment nodes for processing instructions and 
comments that occur in the prolog and after the end of the document 
element."

The root node of a document is not an *element* node, it is a *document* 
node, which itself has an element child, called the document element.

-Erik

-- 
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/
Received on Wednesday, 18 April 2007 03:14:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:09 GMT