You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Alain Tixier <al...@laposte.net> on 2000/03/30 13:30:22 UTC

Problem with position()

Since I installed xalan_1_0_0 the following test doesn't work:
<xsl:if test="not(position()=last())">

This is the full code:
<xsl:for-each select="fld[(position()>8) and (position() mod 2=1)]">
   <xsl:if test="not(position()=last())">
     <tr>
       <td><code><xsl:value-of select="@value"/></code></td>
       <td><code><xsl:value-of 
select="following-sibling::fld[position()=1]/@value"/></code></td>
     </tr>
   </xsl:if>
</xsl:for-each>

The last() position is always "false".

Thank you for your help.

Alain Tixier
alain.tixier@laposte.net