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 a variable:

<xsl:if test="$parameter1=$templateName">
  <xsl:call-template name="test">
</xsl:if>

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.