jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 11347] New: - xtags:if test="position()!=last()" - position() & last() always return zero
Date Wed, 31 Jul 2002 21:47:03 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11347>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11347

xtags:if test="position()!=last()" - position() & last() always return zero

           Summary: xtags:if test="position()!=last()" - position() & last()
                    always return zero
           Product: Taglibs
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: XTags Taglib
        AssignedTo: taglibs-dev@jakarta.apache.org
        ReportedBy: jay@veggiespam.com


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 .

--
To unsubscribe, e-mail:   <mailto:taglibs-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-dev-help@jakarta.apache.org>


Mime
View raw message