Group By Functionality by XSL

Discussions

XML & Web services: Group By Functionality by XSL

  1. Group By Functionality by XSL (1 messages)

    Hi All,

    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.

    Cheers,
    Mohit

    Threaded Messages (1)

  2. Ah yes grouping...[ Go to top ]

    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.

    http://www.jenitennison.com/xslt/grouping/index.html

    Good luck!