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

Re: Not grokking root nodes

From: James Clark <jjc@jclark.com>
Date: Sun, 25 Jul 1999 11:54:28 +0700
Message-ID: <379A9884.EC88D85F@jclark.com>
To: chuck@advancerecruitment.com
CC: www-xpath-comments@w3.org
I think the term "value" has confused you. See the definition of the
term "value" at the beginning of Section 5.  You are not the only one to
have been confused by this, so I am planning to use "string-value"
instead of "value".

Chuck White wrote:
> 
> 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 Sunday, 25 July 1999 01:10:21 GMT

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