When looping an XPath expression using <x:forEach/>, the <x:out select="position ()"/> outputs only 0. A similar loop in XSLT using <xsl:for-each/> and <xsl:value-of select="position()"/> will correctly return the position. This result is obtained on Tomcat 4.1.12-LE-jdk1.4 using JSTL 1.0.2 on Windows 2000 with j2sdk1.4.1_01
The JSTL Expert Group will consider the issue for the JSTL 1.1 Maintenance Release. *** This bug has been marked as a duplicate of 14465 ***