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 .
Resolving. Taglib has been retired.