Re: testing for last node in a list

Subject: Re: testing for last node in a list
From: Ann Marie Rubin <annmarie.rubin@xxxxxxxxxxxx>
Date: Mon, 22 May 2000 20:35:01 -0400
Tom,

When I use <xsl:if test="position()!= last(), the | character never is
output because the
condition is never true.  Each iteration of the template returns a single
node in the node list, so that node is always the last in its node list.

Ann Marie


Tom Amiro wrote:

> Shouldn't you have
>       <xsl:if test="position()!= last()
>
> Instead of
>
> > <xsl:if test="position()=last()">
>
>  Tom
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread