title: XSLT total and Subtotal
body: <p>This is my XML:</p>
  
  <pre><code>&lt;Forms&gt;
    &lt;Form PRONME="Air Prospect 2" PPRONME="0" TBONUSP="1000" NACRES="2" /&gt;
    &lt;Form PRONME="Air Prospect 2" PPRONME="0" TBONUSP="1000" NACRES="2" /&gt;
    &lt;Form PRONME="Air Prospect 2" PPRONME="0" TBONUSP="1000" NACRES="2" LDATE="Jul" /&gt;
    &lt;Form PRONME="Air Prospect Name" PPRONME="0" NACRES="1" /&gt;
    &lt;Form PRONME="Air Prospect Name" PPRONME="0" TBONUSP="1000" NACRES="1" /&gt;
    &lt;Total PRONME="Air Prospect 2" PPRONME="0" TBONUSP="3000"  NACRES="6" /&gt;
    &lt;Total PRONME="Air Prospect Name" PPRONME="0" NACRES="2" TBONUSP="1000"  /&gt;
  &lt;/Forms&gt;
  </code></pre>
  
  <p>I want to print the Form Elements into one group after that I want to print the Total of that group, for example:</p>
  
  <pre><code>&lt;Form PRONME="Air Prospect 2" PPRONME="0" TBONUSP="1000" NACRES="2" /&gt;
  &lt;Form PRONME="Air Prospect 2" PPRONME="0" TBONUSP="1000" NACRES="2" /&gt;
  &lt;Form PRONME="Air Prospect 2" PPRONME="0" TBONUSP="1000" NACRES="2" LDATE="Jul" /&gt;
  </code></pre>
  
  <p>after reading this group i want to print </p>
  
  <pre><code>&lt;Total PRONME="Air Prospect 2" PPRONME="0" TBONUSP="3000"  NACRES="6" /&gt;
  </code></pre>
  
  <p>Based on PRONME I want to Group...
  Using XSLT 1.0</p>