Counter inside xsl:for-each loop

后端 未结 5 810
野性不改
野性不改 2020-12-01 08:49

How to get a counter inside xsl:for-each loop that would reflect the number of current element processed.
For example my source XML is


             


        
5条回答
  •  南笙
    南笙 (楼主)
    2020-12-01 09:28

    You can also run conditional statements on the Postion() which can be really helpful in many scenarios.

    for eg.

     
         //Show header only once
        
    

提交回复
热议问题