RE: [xsl] Last Position Check

Subject: RE: [xsl] Last Position Check
From: "Clapham, Paul" <pclapham@xxxxxxxxxxxxx>
Date: Wed, 18 Jul 2001 09:29:43 -0700
position()=last()

-----Original Message-----
From: Nathan Shaw [mailto:n8_shaw@xxxxxxxxx]
Sent: July 18, 2001 09:17
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] Last Position Check


(I am a digester, so please reply off-list to
n8_shaw@xxxxxxxxx and cc the list if you feel others
may learn too =:>)

I am currently running a check to see if an element is
in the last position, but it does not seem to be
working.

<xsl:if 
test="not(position()='last')">&#32;|&#32;</xsl:if>

The horizontal bar is still being added after the last
element. I am using it on a nav bar and don't want the
"|" included after the last element.

TIA,

Nathan

=====
----------------------------
Nathan Shaw
Web Applications Developer
iaffect
http://www.iaffectonline.com
http://www.iaffectTV.com

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


Current Thread