Rename XML elements using XSLT

前端 未结 2 1399
慢半拍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:09

    The following template achieves the result you're looking for:

    
    
    
        
    
        
        
            
                
            
        
    
        
        
            

    If you'd like more well formed markup modify the xsl:output tag as follows:

    
    

提交回复
热议问题