XML & Web services: Group By Functionality by XSL
- Posted by: Mohit Gupta
- Posted on: November 09 2004 00:07 EST
Does anybody have done the implementation of GROUP BY clause in XSL.
for eg if have a xml containing records having 10 elements out of which 4 are numeric fields i want to group them so that duplicate records having 6 fields identical can be reduced to single record with the sum of all numeric fields of the identical records.
Grouping is certainly something that is difficult in xslt. Xquery appears to make things a little bit easier, but until then, check out these links to some practical methods.