This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Ordering of Blocks based on Input/Output
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