title: Distinct values from xml using xsl
body: <p>I have xml like </p>
  
  <pre><code> &lt;categories&gt;    
  &lt;category&gt;
     &lt;LOC&gt;USA,UK,Spain  &lt;LOC&gt;
   &lt;/category&gt;
      &lt;category&gt;
             &lt;LOC&gt;India,USA,China &lt;LOC&gt;
          &lt;/category&gt;
            &lt;categories&gt;
  </code></pre>
  
  <p>I don't want to get the USA two times when I am displaying LOC</p>
  
  <pre><code>&lt;xsl:value of select="$LOC/&gt;
  </code></pre>
  
  <p>I was thinking of using some variable</p>
  
  <pre><code>&lt;xsl:variable name="ABC" select="set:distinct(//LOC)"/&gt;
  &lt;xsl:value-of select="$ABC"/&gt;
  </code></pre>
  
  <p>But its not working
  Any idea what could be the problem</p>
  
  <p>EDIT: sorry I edited my xml I typed it in wrong</p>