XSLT Grouping Siblings

前端 未结 6 1317
滥情空心
滥情空心 2021-01-05 11:23

I am trying to group sibling data in an XML file.

Given :



    
             


        
6条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-05 11:52

    Here is my attempt. One assumption I have made which simplifies things is that timeline elements with a specific text value are already unique.

    
    
      
    
      
        
          
        
      
    
      
        
          
            
          
        
      
    
    
    

    The above is edited to use current() instead of a variable as per Tomalak's suggestion.

提交回复
热议问题