im still learning for-each-group
what is the best way of grouping something like this using XSL?(by country) i'm trying to use XSL to convert this XML to another XML.
<?xml version="1.0" encoding="UTF-8"?>
<Person>
<Student>
<Info Country="England" Name="Dan" Age="20" Class="C" />
</Student>
<Student>
<Info Country="England" Name="Dan" Age="20" Class="B" />
</Student>
<Student>
<Info Country="England" Name="Sam" Age="20" Class="A" />
</Student>
<Student>
<Info Country="Australia" Name="David" Age="22" Class="D" />
</Student>
<Student>
<Info Country="Australia" Name="David" Age="22" Class="A" />
</Student>
</Person>
If you group by country you would start with e.g.
Then you have to decide whether you want to further group the
Info
elements in each country group, for instance by name: