XSLT for each letter in a string

前端 未结 6 997
一向
一向 2021-01-11 17:44

I\'m writing an XSLT transformation (for XSL-FO), and need to repeat something for each letter in a string value, for example:

If string is stored in MyData/My

6条回答
  •  不思量自难忘°
    2021-01-11 18:42

    I'm not sure about the feasibility of the iteration. You can use recursion obsviously as shown in other answers. This is my proposal (not much different from the others apart the fact I'm using template match patterns and not named templates):

        
            
            
             
                
                    
                
                
                    
                
            
        
    

提交回复
热议问题