How to append a number to an ID inside an XSL file

后端 未结 1 1216
独厮守ぢ
独厮守ぢ 2021-01-24 06:19

I have the following XSL file which will be repeated many times (in my case 4 times):


    
1条回答
  •  遥遥无期
    2021-01-24 06:47

    In case the provided XSLT part is e.g. in an loop, you can use position() to get an incremented value (the current position in the loop) and concat():

    
    

    Update as suggested approach didn't work in the settings:

    Two different kind of notations that should work are:

    
      
    
    

    and

    
      
         
      
    
    

    The content can just be added after the attribute:

    
      
         
      
      
    
    

    Just created a Demo with both versions.

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