xml xslt how to use increment variable

后端 未结 1 1710
[愿得一人]
[愿得一人] 2021-01-26 08:12

How to add the increment variable in xslt

i have table , with student details,

i want to Add S.No front of the Firstname ,

like

1 firstnamJoth

相关标签:
1条回答
  • 2021-01-26 09:06

    With you current implementation you should be able to use:

    <td><xsl:value-of select="position()"/></td>
    

    within the xsl:for-each loop to output a number which will increase for every iteration.

    0 讨论(0)
提交回复
热议问题