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

Re: Optimizing a XSLT

Subject: Re: Optimizing a XSLT
From: Jeff Kenton <jkenton@xxxxxxxxxxxxx>
Date: Mon, 14 Apr 2003 14:35:21 -0400
Re:  Optimizing a XSLT
Eric Barre wrote:
Hi,
I wrote a XSL file to transform a XML file to another XML file,
everything works fine on small file but eventually I will be using it
against large XML file (over 1mg).
When I run it against such a large file it takes for ever to return, I
mean I have to kill it after running for an hour.
Is there a way to optimize the XSL that I have to make it perform
better?
Here is the 'input' XML:
...
The XSL:
...
After reading some posting I tried to stay away from the <xsl:for-each>
as much as possible as well as using variables and parameters.
If anyone could let me know a way to optimize this I would appreciate
it.

The only thing I notice is that almost any use of disable-output-escaping is usually a sign of "doing things the hard way". I would recommend removing all of them in favor of using XSLT to generate your XML the way it was intended to be done.


Having said that, it's probably not the cause of your speed problems. Some XSLT processors are just faster than others. One Meg is not that huge an input file -- my guess is that a decent XSLT engine should handle it in under 1 minute. Try a different engine.


--


--------------------------
Jeff Kenton
DataPower Technology, Inc.
Wire Speed XSLT Processing



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


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.