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

RE: RE:"*NEVER* use for-each"

Subject: RE: RE:"*NEVER* use for-each"
From: "Chris Bayes" <Chris@xxxxxxxxxxx>
Date: Wed, 28 Feb 2001 00:11:10 -0000
RE:  RE:"*NEVER* use for-each"
>for-each is part of the xslt specification.  It does not break anything
>about the programming model because it is, by definition, part of the xslt
>programming model. It is no more or less natural than apply-templates. Each
>provides useful functionality. In msxml3, for-each is slight more effecient
>than using apply-templates because apply-templates adds the additional cost
>of xpath matching.

Yup. But before you know it someone is going to put a // or a //*[@...] etc
in your highly efficient <xsl:for-each> thinking they are just drilling down
from the top level or omnipotent and your performance is going to go though
the floor. This is less likely to happen with templates because you know
where you are or more importantly you don't care where you are.

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


 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.