Subject: RE: [xsl] anyway obvious way to speed this tranfrom up? From: "Ragulf Pickaxe" <jawxml@xxxxxxxxxxx> Date: Tue, 06 Jan 2004 15:00:26 +0000 |
Date: Fri, 2 Jan 2004 13:34:56 -0800...
I need all the parameters in the template that is called by the one that is called first. What does splitting it up do for me?
From what I could see, it would speed it up.
The test condition was Condition 1: "name=/inputDocument/header/name[4]" -> set X1 Condition 2: "name=/inputDocument/header/name[5]" -> set X2
Template A: for-loop: if condition 1: Call B with loads of parameters (set X1) if condition 2: Call B with loads of parameters (set X2) end loop
Template B: Get parameters Do something Call C with same parameters
Template C Get parameters Do something
Global variables: Set X1 Set X2
Template A for-loop: if condition 1: Call B1 if condition 2: Call B2 end loop
Template B1 Uses Set X1 Do something Call C1
Template B2 Uses Set X2 Do something Call C2
Template C1 Uses Set X1 Do something
Template C2 Uses Set X2 Do something
> 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.
I could use those for the constants or maybe pass them in as arguments to the transform.
Regards, Ragulf :)
_________________________________________________________________ Få alle de nye og sjove ikoner med MSN Messenger http://messenger.msn.dk/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] anyway obvious way to spe, Ray Tayek | Thread | [xsl] XSLT/Java does not identify a, Linc |
[xsl] need of assigning position() , Jaime A Stuardo Baha | Date | Re: [xsl] XSL Java (&lt; < <, Robert A. van Ginkel |
Month |