[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: [XSLT/newbie]value-of attributes of the root node

Subject: Re: [XSLT/newbie]value-of attributes of the root node
From: AndrewWatt2000@xxxxxxx
Date: Wed, 20 Sep 2000 09:33:05 EDT
xpath value of attribute
In a message dated 20/09/00 11:02:33 GMT Daylight Time, davidc@xxxxxxxxx 
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.