Subject: Re: [xsl] Optimization using keys From: Robert Koberg <rob@xxxxxxxxxx> Date: Thu, 17 Feb 2005 07:28:36 -0800 |
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...
... <div class="menu"> <xsl:apply-templates select="$snode" mode="start-menu"/> </div> ...
<xsl:template match="*" mode="start-menu"> <xsl:apply-templates select="parent::*" mode="menu"/> </xsl:template>
<xsl:template match="*" mode="menu"> <xsl:apply-templates mode="menu"/> </xsl:template>
best, -Rob
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Optimization using keys, António Mota | Thread | Re: [xsl] Optimization using keys, António Mota |
RE: [xsl] Replace function and apos, Andrew Welch | Date | RE: [xsl] XSLT and comma's in XML d, Ian Vaughan |
Month |