[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] Optimization using keys
Subject: Re: [xsl] Optimization using keys From: António Mota <amsmota@xxxxxxxxx> Date: Thu, 17 Feb 2005 15:14:19 +0000 |
Yes, it is global. My intention even was to do <xsl:template match="$snode"> or <xsl:template match="(//Menu)[number($pos)]"> but no can do, i'm in 1.0 (i recall it can be done in 2.0). If i could do this i expected a speed increase, because i can just copy evrithing without checking wath it is and just treat the one selected... Now i have to check for all Menu nodes if it's the one i want, and there are currently 317 and counting... I can't seem to think of anything else to improve this... On Wed, 16 Feb 2005 21:49:12 -0000, Michael Kay <mike@xxxxxxxxxxxx> wrote: > > It seems to improve a little if i change my test to > > > > <xsl:when test="count($snode)=1 and count(.|$snode)=1"> > > > > where > > > > <xsl:variable name="snode" select="(//Menu)[number($pos)]"/> > > > > but not *that* much... > > Is that a global variable or a local one? It should be global. > > Michael Kay > http://www.saxonica.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Optimization using keys, Michael Kay | Thread | Re: [xsl] Optimization using keys, Robert Koberg |
[xsl] FOP, Help fo:page-number, Fabio Maggi | Date | RE: [xsl] Replace function and apos, Andrew Welch |
Month |