Plz help: looping variable in xsl
<xsl:for-each select="Y/Z">
<input>
<xsl:attribute name="name">remark</xsl:attribute>
<xsl:attribute name="class">specialchar</xsl:attribute>
<xsl:attribute name="Value"><xsl:value-of select="I"/>
</xsl:attribute>
</input>
</xsl:for-each>
here i wanted to use iterator like
<xsl:for-each select="Y/Z">
int i=1;
<input>
<xsl:attribute name="name">remark[i]</xsl:attribute>
<xsl:attribute name="class">specialchar</xsl:attribute>
<xsl:attribute name="Value"><xsl:value-of select="I"/>
</xsl:attribute>
</input>
i++;
</xsl:for-each>
As i am new to xslt, i am not able to do it..
Plz help
|