I want to convert XPath value like Z.12.s from Z12s using xslt

后端 未结 2 1918
[愿得一人]
[愿得一人] 2021-01-29 10:08

Please any one help me on converting XPath value to dot (full stop) separated.

E.g: Z12s to Z. 12.after 1st char need put dot and after 2 char dot then every 2 chars do

2条回答
  •  不知归路
    2021-01-29 10:46

    If you don't know the length of the input string, you will need to use a recursive named template for this, such as:

    
        
        
        
        
            .
            
            
                
                
            
        
    
    

    Demo: https://xsltfiddle.liberty-development.net/pNmC4HF

提交回复
热议问题