This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Next Node tests
- From: Ian_blizard at hp dot com (Ian Blizard)
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 14 Nov 2001 17:33:17 +0000
- Subject: [xsl] Next Node tests
- Reply-to: xsl-list at lists dot mulberrytech dot com
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