It is a complicated task to select distinct nodes or to use grouping useing xslt. There are no simple syntax to write this type XPath query.
The work arround is quite difficult to remember, thats why i decided to duplicate internet content in my blog.
Let’s say, that the XML source is:
[/code]Lets say, that the task is to select distinct nodes grouping by attribute1.The Xpath will look like this: