Distinct elements and grouping

前端 未结 3 901
一生所求
一生所求 2020-12-10 15:20

Given the following xml fragment:


  
    file1
    desc1
  &l         


        
3条回答
  •  醉酒成梦
    2020-12-10 16:15

    This XSLT 1.0 solution will also do the trick. Bit more succinct than the other solutions!

                 
        
          
            

    Result:

    
      
        

    file1

    desc1

    desc2

    file2

    desc1

提交回复
热议问题