Subject: Re: Next Node tests
From: Francis Norton <francis@xxxxxxxxxxx>
Date: Wed, 14 Nov 2001 18:04:25 +0000
|
That's not weird behaviour, that's a bug. Like turning up at the wrong
wedding (and dancing with the bride, but that was another country)
Francis.
Ian Blizard wrote:
>
> Hi all,
>
> Thanks for your help with my previous problem.
>
> I'm now revisiting my stylesheets, I need to test whether or not the
> current Item node is the last Item node in the current context.
>
> e.g
>
> <Data>
> <item>value1</item>
> <item>value2</item>
> <item>i_am_the_last_one</item>
> </Data>
>
> Now I was using:
>
> <xsl:when test="position()=last()"/>
>
> But this behaved sporadically between different versions of Xalan, as
> our stylesheets need to run with any XSL Transformer, weird behaviour
> isn't acceptable. (like wearing boxing gloves to weddings).
>
> -Buzz.
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|