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:
<root> <MyData [...]
