This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Next Node tests
- From: Joerg Pietschmann <joerg dot pietschmann at zkb dot ch>
- To: XSL List <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 15 Nov 2001 14:42:48 +0100
- Subject: Re: [xsl] Next Node tests
- Organization: ZKB
- Reply-to: xsl-list at lists dot mulberrytech dot com
Ian_blizard@hp.com (Ian Blizard) wrote
> 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.
David already explained why your code may have "behaved sporadically".
In addition to this, if you want to have a robust test not dependend
on how the template was invoked, you may want to use something like
<xsl:when test="not(following-sibling::item)"/>
or
<xsl:when test="not(following-sibling::*)"/>
HTH
J.Pietschmann
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list