Subject: Next Node tests
From: Ian_blizard@xxxxxx (Ian Blizard)
Date: Wed, 14 Nov 2001 17:33:17 +0000
|
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
|