XSLT for each letter in a string

前端 未结 6 995
一向
一向 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:37

    Several XSLT 1.0 solutions have been posted (since that is what the original poster needed). For comparison, though, here is how this could be done in XSLT 2.0 using xsl:analyze-string:

     
      
        
           
        
      
    
    

提交回复
热议问题