XSLT sort by tag name and attribute value

前端 未结 3 1506
挽巷
挽巷 2020-12-19 17:16

I\'m a noob with XSLT, so please excuse my ignorance... I\'m trying to sort a simple XML file by attribute value and tag name, but I struggle in accessing the value of the a

3条回答
  •  醉酒成梦
    2020-12-19 17:43

    This XSLT 2.0 transformation performs sorting by element name and multiple attributes nameand value:

    
     
     
    
        
            
                
                    
                    
                
            
        
    
        
          
    
          
              
               
    
               
              
              |
          
    
          
        
    
    

    when applied on this XML document (the provided one, but added multiple attributes):

    
        
        
        
        
        
    
    

    the correctly sorted result is produced:

    
       
       
       
       
       
    
    

提交回复
热议问题