- From: Ivan Latysh <IvanLatysh@yahoo.ca>
- Date: Wed, 18 Apr 2007 10:24:11 -0400
- To: Erik Bruchez <ebruchez@orbeon.com>
- CC: www-forms@w3.org
Hello Erik, Tuesday, April 17, 2007, 11:14:33 PM, you wrote: >>> 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 Thank you, I belive it is the time to take this topic off-line, since it is out of the scope of the mailing list. -- Best regards, Ivan mailto:IvanLatysh@yahoo.ca
Received on Wednesday, 18 April 2007 14:28:59 UTC