How can I merge all sibling elements with the same name and the same attributes into a single element using XSLT? The transformation should also be applied recursively to c
This should do the work:
The tricky part is the definition of same-elements; indexing attributes by name is mandatory for verifying egality of all attributes.