Bug 11347 - xtags:if test="position()!=last()" - position() & last() always return zero
Summary: xtags:if test="position()!=last()" - position() & last() always return zero
Status: RESOLVED LATER
Alias: None
Product: Taglibs
Classification: Unclassified
Component: XTags Taglib (show other bugs)
Version: 1.0
Hardware: All All
: P3 major (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-31 21:47 UTC by jay ball
Modified: 2009-11-29 19:44 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>
</xtags:forEach>

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.