title: xsl grouping two different attributes
body: <p>I have the following XML structure:</p>
  
  <p>
  </p>
  
  <pre><code>&lt;table&gt;
    &lt;field1&gt;User 1&lt;/field1&gt;
    &lt;field2&gt;xyz&lt;/field2&gt;
    &lt;field3&gt;xyz&lt;/field3&gt;
  &lt;/table&gt;
  &lt;table&gt;
    &lt;field1&gt;User 2&lt;/field1&gt;
    &lt;field2&gt;abc&lt;/field2&gt;
    &lt;field3&gt;xyz&lt;/field3&gt;
  &lt;/table&gt;
  &lt;table&gt;
    &lt;field1&gt;User 3&lt;/field1&gt;
    &lt;field2&gt;def&lt;/field2&gt;
    &lt;field3&gt;xyz&lt;/field3&gt;
  &lt;/table&gt;
  &lt;table&gt;
    &lt;field1&gt;User 2&lt;/field1&gt;
    &lt;field2&gt;def&lt;/field2&gt;
    &lt;field3&gt;xyz&lt;/field3&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p></p>
  
  <p>The XML has several 100 table entries.
  The attributes could be within field 2 or field 3 or in both.</p>
  
  <p>I need an Output, which is grouping the users and also the attributes from the fields 2 and 3 in a table.</p>
  
  <pre><code>&lt;table border="1" cellspacing="0" cellpadding="0"&gt;
  &lt;tr&gt;
      &lt;td&gt;Users&lt;/td&gt;
      &lt;td&gt;abc&lt;/td&gt;
      &lt;td&gt;def&lt;/td&gt;
      &lt;td&gt;xyz&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;User 1&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;2&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;User 2&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;2&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;User 3&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p></p>
  
  <p>In a second step I have to Count the values but this is an other topic.</p>
  
  <p>I can only use XSLT 1.0 and unfortunately I have no idea how I can group the values from the fields 2 and 3?</p>
  
  <p>Many thanks in advance for your Support!</p>