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

RE: Getting attribute from rootnode...?

Subject: RE: Getting attribute from rootnode...?
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Fri, 16 Nov 2001 10:35:38 -0000
getting attribute from the element
> Does what your mail say, imply that /*/@RootAttributeValue
> actually searches
> through every 3 child nodes (in your example) looking for the
> attribute?

"/*" selects all the ELEMENT children of the root node (in a well-formed
document there will be exactly one), and the next step "/@att" looks among
the attributes of that element. If you wrote /node()/@RootAttributeValue you
would get the same answer, but the processor would then have to look for
attributes of comments and processing instructions as well, unless it was
clever enough to notice in advance that such things can't exist.

Of course the actual algorithm is up to the processor, if it wanted to it
could search all the attributes in the document and test which of them
belonged to the document element.... but it's unlikely.

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.