title: how to get distinct elements from xml in xslt
body: <p>I am generating PDF using XSLT 1.0. The data or XML which I am passing to XSLT file as:</p>
  
  <pre><code>&lt;employees&gt;
      &lt;employee&gt;
          &lt;unit&gt;Horizontal&gt;&lt;/unit&gt;
          &lt;name&gt;John&lt;/name&gt;
          &lt;age&gt;23&lt;/age&gt;
      &lt;/employee&gt;
      &lt;employee&gt;
          &lt;unit&gt;Vertical&lt;/unit&gt;
          &lt;name&gt;Justin&lt;/name&gt;
          &lt;age&gt;28&lt;/age&gt;
      &lt;/employee&gt;
      &lt;employee&gt;
          &lt;unit&gt;Horizontal&gt;&lt;/unit&gt;
          &lt;name&gt;Peter&lt;/name&gt;
          &lt;age&gt;36&lt;/age&gt;
      &lt;/employee&gt;
  &lt;/employees&gt;
  </code></pre>
  
  <p>Expected output:</p>
  
  <ol>
  <li>Horizontal<br>
  . John<br>
  . Peter</li>
  <li>Vertical<br>
  . Justin</li>
  </ol>
  
  <p>How can I achieve this in XSLT template code? In other words, how to display distinct unit with related employees?</p>