Am I correct in thinking that an apply-templates
declaration should match all templates which could possibly be applied for a selection?
For example, given the following xml fragment:
<doc>
<foo bar="1" baz="2">boz</foo>
</doc>
and the following stylesheet:
<xsl:template match="/">
<xsl:apply-templates select="foo" mode="xyz" />
</xsl:template>
<xsl:template mode="xyz" match="foo[bar='1']">
abc
</xsl:template>
<xsl:template mode="xyz" match="foo[baz='2']">
def
</xsl:template>
I would expect the output to be:
abc
def
Is this correct?