Hi all,
I have an xml of the form:
<Set>
<Element name="Superset1_Set1_Element1"/>
<Element name="Superset1_Set1_Element2"/>
<Element name="Superset1_Set2_Element1"/>
<Element name="Superset2_Set1_Element1"/>
<Element name="Superset2_Set2_Element1"/>
</Set>
I wish to transform it to an xml of the form:
<Superset name="Superset1">
<Set name="Set1">
<Element name="Element1"/>
<Element name="Element2"/>
</Set>
<Set name="Set2">
<Element name="Element1"/>
</Set>
</Superset>
<Superset name="Superset2">
<Set name="Set1">
<Element name="Element1"/>
</Set>
<Set name="Set2">
<Element name="Element1"/>
</Set>
</Superset>
How can this be done with XSLT?
Thanks a lot in advance!