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

RE: anyway obvious way to speed this tranfrom up?

Subject: RE: anyway obvious way to speed this tranfrom up?
From: "Ragulf Pickaxe" <jawxml@xxxxxxxxxxx>
Date: Wed, 31 Dec 2003 08:05:08 +0000
tranfrom
Hello Ray,

You say that the xsl is generated by a program. If you have no way to change this, then I can actually see no way that anybody can help you. In the case that you can do a little about it, I have written a bit. I have not looked extensively at your xsl, though.

It seems that you throw a _lot_ of parameters between called templates.

The example is quite large, but from a quick glance at it, I would split each of the templates generateOutputRecord and addNewFields in two. Perhaps some of the other templates too.

In the first condition "name=/inputDocument/header/name[4]" I would call generateOutputRecord1 which would call addNewFields1 while in the second condition "name=/inputDocument/header/name[5]" I would call generateOutputRecord2 which would then call addNewFields2.

As the values of the parameters are hardcoded, and only dependent on the two conditions, you would now not need to throw all these parameters at each call. If you want, you can create global variables at the top of the xsl document to hold the values.

Hope you are able to use it for something.

Happy new year,
Ragulf Pickaxe :)

From: "Ray Tayek" <rtayek@xxxxxxxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject:  anyway obvious way to speed this tranfrom up?
Date: Tue, 30 Dec 2003 11:40:51 -0800

hi, newbie managed to get something to work, but it's *real* slow.

the xslt's are generated by a program, so they can not be hand tuned, but
maybe there is a way to do some things faster?

The xml input comes from a spreadsheet via a .csv file, so the original
names in the <header> can contains spaces and strange characters, but the
names in the <cell>'s are legal database names.

any clues will be appreciated.

thanks

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail



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.