Rename XML elements using XSLT

前端 未结 2 1405
慢半拍i
慢半拍i 2021-02-04 22:30

I need to change some of the element names in the original XML. I am trying to do this with XSLT, but can\'t get it to work.

Here is a sample of XML:

&l         


        
2条回答
  •  时光取名叫无心
    2021-02-04 23:25

    For anything like this, start with an identity transform:

    
    
    
        
            
        
    
    
      
    

    This will just copy every node. But then you add additional templates to do what you need:

     
      

    This pattern should get you what you want.

提交回复
热议问题