[Home] [By Thread] [By Date] [Recent Entries]
At 12:05 PM 4/18/2002, you wrote:
First, don't try to implement a counter. There's a different way to do it in the XSLT mindset. Assuming that the provided xsl:if is the only test that you perform for each run through the xsl:for-each loop (I assume this due to the position of the ellipses), you can select your exact nodes during the xsl:for-each and forget about the xsl:if. <xsl:for-each select="Contract/TermRdr[StatusCd='A' or StatusCd='F']">
<SequenceNum fieldType="Short" elementType="field">
<xsl:number value ="position()"/>
</SequenceNum>
....
</xsl:for-each>position() gives the position of the current element in relation to the others of the selected node-set, not the absolute value from the document order.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



