title: XSL how to count number of nodes depending on value without using attributes?
body: <p>I have done research, but I found only solutions when operating on attributes.</p>
  
  <p>I have recently started to study XSL. I would like to use it to transform my xml file into html one. The data that I want to extract should present how many nodes have certain value.</p>
  
  <p>XML has following structure:</p>
  
  <pre><code>&lt;Tests&gt;
      &lt;Test&gt;
          &lt;TestName&gt; a &lt;/TestName&gt;
          &lt;Date&gt; 12.11.10 &lt;/Date&gt;
          &lt;Result&gt; Fail &lt;/Result&gt;
      &lt;/Test&gt;
      &lt;Test&gt;
          &lt;TestName&gt; b &lt;/TestName&gt;
          &lt;Date&gt; 13.11.10 &lt;/Date&gt;
          &lt;Result&gt; Fail &lt;/Result&gt;
      &lt;/Test&gt;
      &lt;Test&gt;
          &lt;TestName&gt; c &lt;/TestName&gt;
          &lt;Date&gt; 14.11.10 &lt;/Date&gt;
          &lt;Result&gt; Pass &lt;/Result&gt;
      &lt;/Test&gt;
  &lt;/Tests&gt;
  </code></pre>
  
  <p>what I want as an out is:
  2 (number of Fails)
  1 (number of Passes)</p>
  
  <p>any could give me a hand with this task ?</p>