I want my for-each loop to work on the condition provide in the variable defined.
If Record_Counter has value 7 in it, then for_each should iterate for 7 times.
Note: I have created the variable Counter to store Record_Counter value.
Please find XSLT code which I tried but it is not giving me desired result.
<xsl:variable name= "Counter" select="Element[1]/@Record_Counter" />
<xsl:for-each select="$Counter">
<itemGroup ref="ValTechnique">
<reportItem key="yes">
<itemValue>
<xsl:value-of select="@Reporting"/>
</itemValue>
</reportItem>
<reportItem>
<itemValue>
<xsl:value-of select="@Valuation"/>
</itemValue>
</reportItem>
</itemGroup>
</xsl:for-each>