13
XML snippet:
<AA>
<BB>foo</BB>
<CC>bar</CC>
<DD>baz</DD>
<EE>bar</EE>
</AA>
How do I select all the child nodes of <AA> that have bar as its contents? In the example above, I'd want to select <CC> and <EE>. I'm thinking the solution is something like:
<xsl:template match="AA">
<xsl:for-each select="???" />
</xsl:template>