[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: Thu, 31 Aug 2006 23:30:30 +0100
Re:  Retrieving top-level attribute value in XSLT 2.0
On 8/31/06, David Carlisle <davidc@xxxxxxxxx> wrote:
the top level elemnt the root element, although that terminoligy is
sometimes used, it's best not to use it in xslt/xpath as xpath (1) a
root node is always the _parent_ of the top level element, not the
element itself. So there is never a "root element".

my 2p...

top-level elements are those things that are child nodes of


In an XML document there is a root element and a root node.  The root
node is the level above the root element.  Its not too bad to think
about when you can distinguish between an element (something between
angle brackets) and a node (say a text node or attribute node). XML is
a tree, so it should really have a root.

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.

Current Thread


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.
First Name
Last Name
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.