title: Select child nodes based on their contents
body: <p>XML snippet:</p>
  
  <pre><code>&lt;AA&gt;
    &lt;BB&gt;foo&lt;/BB&gt;
    &lt;CC&gt;bar&lt;/CC&gt;
    &lt;DD&gt;baz&lt;/DD&gt;
    &lt;EE&gt;bar&lt;/EE&gt;
  &lt;/AA&gt;
  </code></pre>
  
  <p>How do I select all the child nodes of <code>&lt;AA&gt;</code> that have <code>bar</code> as its contents? In the example above, I'd want to select <code>&lt;CC&gt;</code> and <code>&lt;EE&gt;</code>. I'm thinking the solution is something like:</p>
  
  <pre><code>&lt;xsl:template match="AA"&gt;
    &lt;xsl:for-each select="???" /&gt;
  &lt;/xsl:template&gt;
  </code></pre>