How can I select only distinct elements for the XML document using XPATH?I\'ve tried to use the \'distinct-values\' function but it didn\'t work for some reason..
Th
You need the distinct values of the element names - something like:
distinct-values($catalog/product/*/name(.))