How to use group by in xslt

后端 未结 2 556
长情又很酷
长情又很酷 2021-01-06 02:18

I have a xml that has so many elements and most of that contain attributes.. for some of the attributes values are same so I need to group them and generate diff xml. I/p Ex

2条回答
  •  一个人的身影
    2021-01-06 02:58

    In XSLT 2.0 you should be able to do it with , current-grouping-key() and current-group()

    Example:

    
        
            
                
            
        
    
    

    See: http://www.w3.org/TR/xslt20/#grouping

提交回复
热议问题