[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Ordering of Blocks based on Input/Output


Subject: Re: [xsl] Ordering of Blocks based on Input/Output
From: Francis Norton <francis@xxxxxxxxxxx>
Date: Wed, 09 May 2001 14:04:44 +0100


Ingo Schildmann wrote:
> 
> On Wednesday 09 May 2001 11:38, Francis Norton wrote:
> >     <!-- always need a terminate condition in recursive functions -->
> >     <xsl:if test="count($todo) > 0">
> 
> This test does the same as test="$todo", which is
> much more efficient for larger data,
> if the processor doesn't optimize it anyway.
> 
Quite right about the equivalence, though I don't know if doing count()
on a node-set held in a variable will take as long as it would if
gathering the node-set for the first time. Certainly "test='$todo'" is
safer and better XSLT style.

Francis.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords