Re: [xsl] bad programming for speedup?

Subject: Re: [xsl] bad programming for speedup?
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Tue, 24 Jul 2007 11:13:33 +0100
On 7/24/07, christoph.naber@xxxxxxxxxxxxxxxxxxx
The aim is to surround occurences of <row> - tags with a <table> - tag.
I've done this with "good" XSL, what appears to be real slow, and with a
"bad" version, which inserts tags as <xsl:text>.

You didn't show your "good" version, but the standard approach here would be the identity template with a specific template for the <row> element (not tag!)

<xsl:template match="@*|node()">
   <xsl:apply-templates select="@*|node()"/>

<xsl:template match="row">

I'm pretty confident that would be faster (or at least just-as-fast)
as your current fastest solution.

(your "bad" version is really common amongst casual XSLT'ers when they
get stuck, by the way)


Current Thread