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
In XPath 2.0:
distinct-values(/*/*/*/name(.))
In XPath 1.0 this cannot be produced with a single XPath expression.
Using XSLT 1.0:
When this transformation is applied on the provided XML document, the wanted result is produced:
size price rating year
A more efficient XSLT 1.0 transformation, using keys: