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

Re: [XSLT Streaming] Are xsl:for-each and xsl:iterate

Subject: Re: [XSLT Streaming] Are xsl:for-each and xsl:iterate equivalent?
From: "Sean B. Durkin" <sean@xxxxxxxxxxxxxxxxx>
Date: Fri, 30 Aug 2013 02:23:37 +1000
Re:  [XSLT Streaming] Are xsl:for-each and xsl:iterate
One other difference:
  xsl:for-each can leverage xsl:sort. xsl:iterate can not.

Faithfully,
Sean B. Durkin

On 30/08/2013 2:22 AM, Michael Kay wrote:
To my way of thinking, streaming means that we start at the top and sequentially make our way through the document (or break out if desired). Given that, it seems like when doing streaming Best Practice is to use xsl:iterate and not use xsl:for-each. Do you agree?

If there are no parameters passed from one iteration of the loop to the next, and if there is no break-out, then the two constructs are semantically equivalent and there is no strong reason to prefer one over the other.

Michael Kay
Saxonica

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.