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
> 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