Multilevel Grouping with XSLT 2.0
I'm trying to figure out how to do multi-level grouping.
Anyone a good sugggestion?
Example XML:
<Computers>
<Hardware>
<Hardisks>
<Product>
Seagate 200GB
</Product>
<Price>
129,-
</Price>
</Hardisks>
</Hardware>
<Hardware>
<Hardisks>
<Product>
Maxtor 160GB
</Product>
<Price>
109,-
</Price>
</Hardisks>
</Hardware>
<Hardware>
...
</Hardware>
...
</Computers>
Needed output
<Computers>
<Hardware>
<Hardisks>
<Product>
Seagate 200GB
</Product>
<Price>
129,-
</Price>
<Product>
Maxtor 160GB
</Product>
<Price>
109,-
</Price>
</Hardisks>
<Monitors>
...
</Monitors>
...
</Hardware>
<Software>
<Office>
...
</Office>
...
</Software>
</Computers>
Robert Zegwaard
|