XSLT transformation to xml, grouping by key

前端 未结 2 499
北海茫月
北海茫月 2021-01-21 11:54

I have problem with write xsl to transform my xml to raport version. It looks like that:


    
        Jo         


        
2条回答
  •  感情败类
    2021-01-21 12:23

    This XSLT:

    
    
    
    
       
        
            
        
    
    
    
        
            
        
    
    
    
        
            
            
                
            
        
    
    
    
         
    
    
    
        
    
    
    
    
    
    

    With this XML input:

    
    
        John
        Tom
    
    
        
    1001 Article1
    1002 Article2
    1001 Article3

    Provides this needed result:

    
        
           John
           
              
    Article1
    Article3
    Tom
    Article2

    The further optimization might be using keys, but it looks premature with your structure.

提交回复
热议问题