This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: [XSLT/newbie]value-of attributes of the root node
- To: xsl-list at mulberrytech dot com
- Subject: Re: [XSLT/newbie]value-of attributes of the root node
- From: AndrewWatt2000 at aol dot com
- Date: Wed, 20 Sep 2000 09:33:05 EDT
- Reply-To: xsl-list at mulberrytech dot com
In a message dated 20/09/00 11:02:33 GMT Daylight Time, davidc@nag.co.uk
writes:
> > Within XSLT and XPATH, what, if any, purpose does this
> > seperation of root node and document element serve?
>
> It gives access to items that may not be children of the document node.
> Such as comments and processing instructions.
David,
It seems to me that what you have just stated contradicts the XPath
Recommendation.
In Section 5.1 it states, "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.".
Thus processing instructions and comments are children of the root node (aka,
informally, document node), contrary to your statement.
> Also the xpath tree model works with trees that need not have a
> single top level document node at all (xsl variables, rtf-node set
> coercions, etc)
Also the term "top level" seems to me to introduce, in this context,
unnecessary confusion. "Top -level" (with a hyphen) is used in quite a
different way within the XSLT Recommendation. Whether that usage is or is not
appropriate is a separate issue.
Andrew Watt
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list