Я не знаю, возможно ли это, но мне интересно, как это сделать...
Скажем, у нас есть следующий XSL:
<xsl:template name="foo">
Bla bla bla
</xsl:template>
...
<xsl:template name="bar">
Bla bla bla
</xsl:template>
...
<xsl:template match="/">
<xsl:if test="$templateName='foo'">
<xsl:call-template name="foo"/>
</xsl:if>
<xsl:if test="$templateName='bar'">
<xsl:call-template name="bar"/>
</xsl:if>
</xsl:template>
Можно ли изменить XSL, чтобы читать что-то вроде...
<xsl:template match="/">
<xsl:call-template name="$templateName"/>
</xsl:template>