Hello,

I'm stuck with

        <xsl:template match="/out">
                <xsl:variable name="what">template_to_use</xsl:variable>
                <xsl:call-template name="{$what}"/>
        </xsl:template>

which I thought would do the same as

        <xsl:template match="/out">
                <xsl:call-template name="template_to_use"/>
        </xsl:template>

Alas, I get

Error: msgtype:error :: code:229 :: module:Sablotron :: URI:arg:/template :: line:8 :: 
node:element '<xsl:call-template>' :: msg:called nonexistent rule

even if template named "template_to_use" exists (the call-template
with fixed name runs just fine).

Am I hitting the limits of XSLT (I didn't find a reason this shouldn't
work, but I didn't find a reason this should work either) or limits of
Sablotron (using 0.50)?

Sincerely,

-- 
------------------------------------------------------------------------
 Honza Pazdziora | [EMAIL PROTECTED] | http://www.fi.muni.cz/~adelton/
 .project: Perl, mod_perl, DBI, Oracle, auth. WWW servers, XML/XSL, ...
Petition for a Software Patent Free Europe http://petition.eurolinux.org
------------------------------------------------------------------------

Reply via email to