This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Next Node tests


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]