[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|