Move sub nodes into parent attributes with XSLT

后端 未结 2 1062
臣服心动
臣服心动 2021-01-06 15:07

I have some XML which contains records and sub records, like this:


    

        
2条回答
  •  佛祖请我去吃肉
    2021-01-06 15:53

    Here's a complete solution:

    
    
      
      
        
          
        
      
    
      
      
    
      
      
        
          
        
        
          
        
      
    
    
    

    Note that I changed the name of your attributes to "r1", "r2", etc., because XML doesn't allow you to start a name with a number.

提交回复
热议问题