Re: [xsl] Performance differences between xsl:for-each and xsl:template matches

Subject: Re: [xsl] Performance differences between xsl:for-each and xsl:template matches
From: "Dave Pawson dave.pawson@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 17 Aug 2022 08:51:20 -0000
On Wed, 17 Aug 2022 at 08:10, Michael Kay mike@xxxxxxxxxxxx <
xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:


> But let's ignore the critique of methodology and try to answer the
> question. There is no reason to believe that using apply-templates and
> template rules should be faster than for-each. On the contrary, one would
> expect it to be marginally slower. The reason for advising people to use
> apply-templates is not for performance improvement, it is to create code
> that is more robust and maintainable.
>

And easier to comprehend later?
  Is a for-each approach a first step from procedural towards a data driven
approach?

A file of template-matches (to me) seems much more understandable.


regards

-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.

Current Thread