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

RE: When/How to use templates, and when to use if/choo

Subject: RE: When/How to use templates, and when to use if/choose
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 20 Jun 2007 09:11:32 +0100
RE:  When/How to use templates
> What happens in terms of performance? 

Performance depends on the product. 

(a) Some products are much faster than others

(b) Different products optimize different features of the language.

Never make guesses about the performance of particular constructs in the
absence of specific measurements.

In Saxon, an apply-templates that selects into a set of 100 template rules
each of which matches a different element name will be *much* faster than an
xsl:choose with 100 xsl:when clauses. Other products may differ. But I have
never come across anyone with a performance problem where template matching
played a significant role. 

Michael Kay

Current Thread


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.
First Name
Last Name
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.