XSLT 1.0 Grouping

后端 未结 3 1309
半阙折子戏
半阙折子戏 2021-01-27 17:45

I need to apply XSLT 1.0 transformation to following XML:


  
    2013
    

        
3条回答
  •  悲&欢浪女
    2021-01-27 18:31

    Please try this:

    
      
      
      
    
      
        
          
        
      
    
      
        
          
        
      
    
      
        
        
          
          
            
          
          
            
          
          
            
          
        
      
    
    

    When run on this input:

    
      
        
          2013
          13
          13
        
        
          2012
          12
          12
        
      
      
        
          2013
          13
        
        
          2011
          11
        
      
    
    

    The result is:

    
      
        2013
        13
        13
        13
      
      
        2012
        12
        12
        
      
      
        2011
        
        
        11
      
    
    

提交回复
热议问题