W3C home > Mailing lists > Public > www-xpath-comments@w3.org > July to September 1999

Not grokking root nodes

From: Chuck White <chuck@advancerecruitment.com>
Date: Tue, 20 Jul 1999 12:53:12 -0700
Message-ID: <3794D3A4.1BA866E6@advancerecruitment.com>
To: www-xpath-comments@w3.org
Greetings:
From Section 5.1 Root Node:

"The root node is the root of the tree. It does not occur anywhere else
in 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 value of the root node is the value of the document element."
----
This is confusing. If the value of the root node is the value of the
document element, and the "element node for the document element is a
child of the root node," then these statements imply that the document
element is a child of itself. I'm sure this isn't the case, but that's
how it reads. How should this actually be interpreted? Thanks

-- 
Chuck White
Creative Director
Advance Recruitment Advertising, Inc.
chuck@advancerecruitment.com
http://www.advancerecruitment.com
--------------------------------------------------
author of Internet Explorer 5 Developer's Guide. 
M&T Press, IDG Books Worldwide
co-author
Mastering XML
Sybex Books, September, 1999
Received on Tuesday, 20 July 1999 15:51:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:05:53 GMT