Hi Martin,
I have tried your xslt and it works fine.
I would like to express my sincere thanks for your help and source code.
Please could you explain to us the key you created?
<xsl:key name="k1" match="Ad" use="concat(ancestor::Vehicle/@key, '|', Position/@name)"/>
1 - Why are you using concat to create a key with two values i.e. vehicle key and position name?
2 - how did you realise that it was necessary to have a concat for the key?
It was trying to group using only Position/@name so I would never have got it right :-(
Cheers
|