Incrementing and checking the counter variable in XSLT

后端 未结 6 1029
梦毁少年i
梦毁少年i 2020-11-29 09:56

I am having little difficulty in assigning a counter variable and incrementing it and then checking for a certain value in XSLT. Here is my code:



        
6条回答
  •  清歌不尽
    2020-11-29 10:15

    I have same problem. I need increment value in loop. So the simplest way was include Saxon and use that value.

    if you use Saxon 6.5.5

    
    

    if you use Saxon 9.4.0.4

    
    

    And after that you can simply use saxon variable :

     
    
     
    
     
    

提交回复
热议问题