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

Re: nodes order in union

Subject: Re: nodes order in union
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Sat, 17 Nov 2001 18:33:19 +0000
order by union
Hi Philippe,

> Is the XSLT processor (Saxon, actually) cleaver enougth to process
> the nodes in right order ? Or is there somewhere in Xpath or XSLT a
> rule which says that in this particulary case, union must yield a
> node-set where attributes are located before other nodes (I can't
> find it)?

The nodes in node sets aren't kept in any particular order (hence
'sets'). However, when you tell the XSLT processor to process them
with xsl:for-each or xsl:apply-templates, it processes them in
document order. According to the XPath Rec, attributes come before
child nodes in document order, which is why the attributes are
processed first, and copied onto the element first, and why no error
occurs.

The precise reference on document order is
http://www.w3.org/TR/xpath#dt-document-order.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 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.