[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: Kay Michael <Michael.Kay@xxxxxxx>
Date: Tue, 19 Sep 2000 16:09:04 +0100
xslt value of attribute
> I am trying to get the value of an attribute of the root node 

The "root node" in XPath is not an element, and it does not have attributes.
It is not the same as what the XML spec calls the "root, or document
element"; rather it is the parent of this element, the equivalent of what
DOM calls the Document node.

To get an attribute of the outermost element, use "/*[@name]" 

You are not the only one confused by this inconsistency of terminology
between different W3C standards.

Mike Kay


 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.