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'" <xsl-list at mulberrytech dot com>
- Subject: RE: [XSLT/newbie]value-of attributes of the root node
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Tue, 19 Sep 2000 16:09:04 +0100
- Reply-To: xsl-list at mulberrytech dot com
> 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