[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: bad programming for speedup?

Subject: Re: bad programming for speedup?
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Tue, 24 Jul 2007 11:13:33 +0100
Re:  bad programming for speedup?
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: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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.