[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
> 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 http://www.saxonica.com/
|
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
|