I m working with XSLT1.0 . My requirement is to merge set of elements based on a common attribute. I ve an xml which looks like this:
As shown in the other topic halfbit linked to, you need to use a key in order to (1) select distinct products (aka the Muenchian method) and (2) collect the values from the related group.
Here's a little more readable (IMHO) version:
,
If your processor is EXSLT capable, you can use the set:distinct() function instead of the Muenchian grouping.