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

Subject: [xsl] Performance differences between xsl:for-each and xsl:template matches
From: "Edward Porter edward.porter@xxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 16 Aug 2022 17:11:13 -0000
I inherited an older stylesheet that makes extensive use of <xsl:for-each>
matching elements (e.g., select="//chapter[@eid]") in the root template to
then call templates. Using Saxon, would there be any performance improvements
if I refactored to use match templates and <xsl:apply-templates> as would
generally be the best practice in this case?

-Ed


Edward Porter
Doc Publishing Tech Lead | Documentation Engineering - DevOps
Tel: + 1 919 531 2349
SAS | 100 Campus Drive | Cary, NC 27513

[cid:image001.gif@xxxxxxxxxxxxxxxxx]
DID YOU KNOW?
SAS IS THE NO. 1 AI AND ADVANCED ANALYTICS SOFTWARE
PLATFORM.<https://www.sas.com/gms/redirect.jsp?detail=GMS114829_158201>

[demime 1.01d removed an attachment of type image/gif which had a name of image001.gif]

Current Thread