I have problem with write xsl to transform my xml to raport version. It looks like that:
Jo
This XSLT:
With this XML input:
John Tom 1001 Article1 1002 Article2 1001 Article3
Provides this needed result:
John Article1 Article3 Tom Article2
The further optimization might be using keys, but it looks premature with your structure.