Bug 11347

Summary: xtags:if test="position()!=last()" - position() & last() always return zero
Product: Taglibs Reporter: jay ball <jay>
Component: XTags TaglibAssignee: Tomcat Developers Mailing List <dev>
Severity: major    
Priority: P3    
Version: 1.0   
Target Milestone: ---   
Hardware: All   
OS: All   

Description jay ball 2002-07-31 21:47:02 UTC
with this sample code:

<xtags:forEach select="agencyActivity">
<xtags:valueOf select="."/>
<xtags:valueOf select="position()"/>
<xtags:valueOf select="last()"/>
<xtags:if test="position()!=last()">,</xtags:if>

The comma is never displayed in this snippet.  The reason is the output for
position() and last() is always zero, never the correct value of position or the
proper indicator of last.  This bug is also reported on the mailing list here:
http://www.mail-archive.com/taglibs-user@jakarta.apache.org/msg02505.html .
Comment 1 Henri Yandell 2009-11-29 19:44:00 UTC
Resolving. Taglib has been retired.