Subject: RE: [xsl] 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 |
> 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/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] When/How to use templates, Ian Jolly | Thread | [xsl] Getting a list of node Text(), Nicholas Orr |
Re: [xsl] test node inexistence, Kai Hackemesser | Date | [xsl] Applying child nodes in a sub, e107lac |
Month |