IDENTIFYING 10TH ROW IN A XSL
My requirement is like this.
I need to repeat the header between every 10th line in my xsl.
For most of the files I have done it with <xsl:if test="position() mod 10 = 1">
In one of the file I am not able to implement the same logic since the position() is changing frequently.
I know that in xsl reassigning of variable is not possible.
Since the for-loop is followed by a if condition the position value changes.
I want to find out how many times this if condition gets satisfied?
<xsl:sort order="ascending" select="."/>
<xsl:variable name="SA" select="."/>
<xsl:if test="count(/job/summary/sunAlertReport/rs:sunAlertReportSummary/rs:sunAlertSummaryList/rs:sunAlertSummary[rs:sunAlertId=$SA]/rs:oriNext/rs:oriNextList/rs:oriRule[rs:severity = 'Critical']) > 0">