Subject: Re: [xsl] bad programming for speedup? From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx> Date: Tue, 24 Jul 2007 11:13:33 +0100 |
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:copy> <xsl:apply-templates select="@*|node()"/> </ </
<xsl:template match="row"> <table> <xsl:apply-templates/> </table> </
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)
-- http://andrewjwelch.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] bad programming for speedup?, christoph . naber | Thread | Re: [xsl] bad programming for speed, Abel Braaksma |
[xsl] bad programming for speedup?, christoph . naber | Date | Re: [xsl] bad programming for speed, Abel Braaksma |
Month |