XSLT Counter Increment Conditional Statement



I need a loop to go through every single PV_RiskAssessment and test a variable called @RPN, so whenever an RPN falls within the range of 0-36, I want to increase the variable by 1. SO basically, if there are 3 that falls in this range, I want to print 3. But what I am getting is a printed loop of all the numbers from 1-36...



<xsl:for-each select="Root/individualCQA">
<tr>
<td valign="top">
<xsl:for-each select="PV_RiskAssessment">

<p align="center">
<xsl:if test="@RPN &gt;'0' and @RPN &lt;'36'">
<xsl:call-template name="loop">
<xsl:with-param name="i" select="0"/>
<xsl:with-param name="lowerLimit" select="10"/>
<xsl:with-param name="lowerLimit" select="36"/>
</xsl:call-template>
</xsl:if>
</p>
</xsl:for-each>
</td>
</tr>
</xsl:for-each>

No comments:

Post a Comment