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

Re: Retrieving top-level attribute value in XSLT 2.0

Subject: Re: Retrieving top-level attribute value in XSLT 2.0
From: "andrew welch" <andrew.j.welch@xxxxxxxxx>
Date: Fri, 1 Sep 2006 10:27:35 +0100
xslt root attribute value
On 9/1/06, Michael Kay <mike@xxxxxxxxxxxx> wrote:
> Googling around though, shows "top-level element" refers to
> both  the single root element of an xml document (in error
> messages), and the top-level child elements in xslt.... One
> must be wrong.

No, the word "set" has about 43 meanings, and none of them is wrong. You
just have to be clear about your context. Unfortunately, google isn't.

The context here is an XML document... "top-level" means different things it seems depening on whether the XML parser or XSLT processor is talking. Using it as the term for the single root element is new to me.

I did try to get rid of the term in XSLT 2.0. It's still used (and defined),
but most of the time has been replaced by "declaration". Top-level element
is a slighly broader category that embraces declarations and user-defined
data elements. XML schema uses the term in much the same way, with "global"
as a near synonym.

I'm sure Saxon used it in error messages (which is probably where I got it from), but the best I can find now is:

XTSE0010: Element must be used only at top level of stylesheet

...which isn't too far off :-)

Anyway, if its really going that way then I'll adopt the new
terminology.  Thanks for the correction.

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.