title: XSLT - Filtering
body: <p>I have a repeating xml tree like this -</p>
  
  <pre><code>&lt;xml&gt;
    &lt;head&gt;this is a sample xml file&lt;/head&gt;
    &lt;item&gt;&lt;color&gt;yellow&lt;/color&gt;&lt;color&gt;red&lt;/color&gt;&lt;/item&gt;
    &lt;item&gt;&lt;color&gt;blue&lt;/color&gt;&lt;/item&gt;
    &lt;item&gt;&lt;color&gt;grey&lt;/color&gt;&lt;color&gt;red&lt;/color&gt;&lt;color&gt;blue&lt;/color&gt;&lt;/item&gt;
  &lt;/xml&gt;
  </code></pre>
  
  <p>As you can see, each item can have a varying number of color tags.</p>
  
  <p>I wish to get all the color tags for the first two items only.</p>