title: distinct in Xpath?
body: <p>I have this XML file, from which I'd like to count the number of users referenced in it. But they can appear in more than one category, and I'd like these duplicates not to be taken into account.<br>
  In the example below, the query should return 3 and not 4. Is there a way in XPath to do so? Users are not sorted at all.</p>
  
  <pre><code>&lt;list&gt;
    &lt;group name='QA'&gt;
      &lt;user name='name1'&gt;name1@email&lt;/user&gt;
      &lt;user name='name2'&gt;name2@email&lt;/user&gt;
    &lt;/group&gt;
    &lt;group name='DEV'&gt;
      &lt;user name='name3'&gt;name3@email&lt;/user&gt;
      &lt;user name='name2'&gt;name2@email&lt;/user&gt;
    &lt;/group&gt;
  &lt;/list&gt;
  </code></pre>