This is the sample XML that I am working on:
<NewDataSet>
<Table>
<content_id>ID_001</content_id>
<record_id>Value_1</record_id>
</Table>
<Table>
<content_id>ID_001</content_id>
<record_id>Value_2</record_id>
</Table>
<Table>
<content_id>ID_002</content_id>
<record_id>Value_3</record_id>
</Table>
</NewDataSet>
I would like to transform this to
<Results>
<Record>
<id>ID_001
</id>
<item>Value_1
</item>
<item>Value_2
</item>
</Record>
<Record>
<id>ID_002
</id>
<item>Value_3
</item>
</Record>
</Result>
What's causing the trouble is that I am not able to do a GROUP BY <content_id>
in the XSL to get the result.
Could I get any help in this?