- 🇩🇪Germany Schoenef Unna
Please open a new issue for the 2.0 version, if this issue has still any relevance.
Is it possible to specify an xpath selector to filter by attribute and return distinct values?
From the following:
<root>
<classifications>
<classification name="Category">Category One</classification>
<classification name="Sub-Category">Sub-Category One</classification>
</classifications>
<classifications>
<classification name="Category">Category Two</classification>
<classification name="Sub-Category">Sub-Category One</classification>
</classifications>
<classifications>
<classification name="Category">Category One</classification>
<classification name="Sub-Category">Sub-Category Two</classification>
</classifications>
<classifications>
<classification name="Category">Category Three</classification>
<classification name="Sub-Category">Sub-Category One</classification>
</classifications>
<classifications>
<classification name="Category">Category One</classification>
<classification name="Sub-Category">Sub-Category Two</classification>
</classifications>
<classifications>
<classification name="Category">Category Two</classification>
<classification name="Sub-Category">Sub-Category One</classification>
</classifications>
</root>
classifications/classification[@name="Category"]
returns:
Category One
Category Two
Category One
Category Three
Category One
Category Two
What I'm after is:
Category One
Category Two
Category Three
Closed: won't fix
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Please open a new issue for the 2.0 version, if this issue has still any relevance.