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

RE: Order That Nodes Are Processed

Subject: RE: Order That Nodes Are Processed
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Tue, 6 Jan 2004 18:28:28 -0000
reorder nodes xsl
> If I have an <xsl:apply-template select="some criterion"> or 
> <xsl:for-each select="some criterion"> statement in my 
> stylesheet, am I guranteed that the nodes will be processed 
> in the exact order that the qualifying nodes appear in the XML file?
> 

Yes, the nodes are processed in document order.

A caveat if you want to be pendantic: this means that the result of
processing node A will appear in the result tree before the result of
processing node B if and only if A is before B in the input document (in
both cases "before" refers to "document order"). This has nothing to do
with the chronological sequence of processing: the XSLT processor can
process the input backwards and create the result tree backwards if it
feels like it.

Michael 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.