|
[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?
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 _________________________________________________________________ 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








