XSL combining values of siblings if values of an attribute is same

后端 未结 2 1103
没有蜡笔的小新
没有蜡笔的小新 2021-01-16 18:16

This is how my XML looks like







  &         


        
2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-16 18:37

    This should do it:

    
      
      
    
      
        
          
        
      
    
      
        
          
          
        
      
      
    
      
        
        
      
    
      
        
      
    
    
    

    When run on this input (with a few additional values to demonstrate its functionality):

    
      
    
        
    
        
          
             "555" 
             "666" 
             "555" 
             "565" 
             "575" 
             "595" 
          
        
      
    
    

    The result is:

    
      
        
        
          
             "555" , "666" 
             "555" , "565" , "575" 
             "595" 
          
        
      
    
    

提交回复
热议问题