XSLT Sorting - how to sort xml childnodes inside a parent node with an attribute

前端 未结 2 957
自闭症患者
自闭症患者 2020-12-17 21:11

What started out as a simple thing has turned out quite troublesome for XSLT noob.

Trying to sort childnodes/descending but, after adding an attribute to their pare

2条回答
  •  执笔经年
    2020-12-17 21:40

    This transformation:

    
     
     
    
     
         
           
         
     
    
     
      
        
        
          
        
      
     
    
    

    when applied on the provided XML document:

    
        
            
                
                
            
            
                
                
            
            
                
                
            
        
        
            
                
                
            
            
                
                
            
            
                
                
            
        
    
    

    produces the wanted, correct result:

    
       
          
             
             
          
          
             
             
          
          
             
             
          
       
       
          
             
             
          
          
             
             
          
          
             
             
          
       
    
    

提交回复
热议问题