Dynamically call a xslt template
You cannot call a xslt template like: <xsl:variable name="templateName" select="test"></xsl:variable> <xsl:call-template name="$templateName"> <xsl:template name="test"> </xsl:template> The clossed you can get to calling a xslt template dynamically is to use the <xsl:if or <xsl:choose based on