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

process order was: Getting all the attribute values

Subject: process order was: Getting all the attribute values
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 7 Apr 2000 19:51:05 +0100 (BST)
xslt getting attributes values
correcting myself

Sorry you mislead me by throwing in a reference to processing order:-)

I just gave a correct (I hope) explanation of why @* gives unpredicatble
results


but


> > but I don't see how http://www.w3.org/TR/xslt#for-each could be
> > interpreted that way.

> see now:-)

I think maybe I was wrong (unless 

>The nodes are processed in document order

means something different from its obvious meaning)

This actually is quite bizarre. XSLT is side effect free, which some
people find hard to take, although it always seems a more natural
programming style to me. But the main claimed benefit of having no side
effects is that a processor is allowed to process things in parallel or
in any order it wants so long as the end results are the same.

So my understanding has always been that a processor could execute the
templates on the elements of the node list in any order it wanted
so long as it appended the results into the result tree based on
document order in the source. The classic example is a browser jumping
to the end of a document and the renderer starting off by transforming
that last chapter and going back and filling in the rest later, to get
quicker apparent respnse.

But this phrase appears to imply that if you go 
for-each select="chapter" rather than apply-templates select="chapter"
the processor does have to process the entire document in order.

Note that this issue is completely different from the original question
about attribute order where that actually affects the completed result,
not just the order in which internal processing occurs.

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.