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

Re: Optimization using keys

Subject: Re: Optimization using keys
From: António Mota <amsmota@xxxxxxxxx>
Date: Thu, 17 Feb 2005 15:14:19 +0000
fop optimization
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

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.