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

Re: AW: xsl:result-document appending

Subject: Re: AW: xsl:result-document appending
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 19 Sep 2003 19:55:48 +0100
result procesing
> 
> No, it isn't, but XML does not define any ordering for attributes of an 
> element, so an XSLT processor may encounter them in any order --

> ...
>  Introducing a sort (as David C. suggested I think)

Wendell, but that was in the other thread.
the lack of reliable ordering that Mike was refering to here is in the
procesing of elements not attributes.
The posted code had:

     <xsl:for-each select="top/item">


However the only thing you know about a for-each is that the result tree
fragments generated by executing the body on each of the input nodes
will be appended to the result tree in the specified order.
You _don't_ know that they will be generated in that order.
So if the body of teh for-all does something with side effects like
appending to a file (or even just xsl:message) that reveals the
execution order of the for-each then you will get highly unpredictable
results.


David

 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.