Subject: Re: [xsl] using xsl:call-template dynamicly From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Wed, 21 Apr 2010 13:41:32 +0200 |
Hi ,
i'm using apache fop , and i want in my xsl to dynamicly call a template
for example i got a main xsl file==> main.xsl (which i mport a xsl file ==> subreport1.xsl)
in this subreport1.xsl file i got a template that i declare like that :
<xsl:template match="projectDetailSection"> <xsl:template>
and in my main template (main.xsl)
i call the template with:
<xsl:call-template name="projectDetailSection" />
that's the normal case it's working.
Is that working? I don't think it can work if you have match="projectDetailSection" on your xsl:template, you would need name="projectDetailSection"
i define the variable:
<xsl:variable name="var1" saxon:assignable="yes">projectDetailSection </xsl:variable>
and then i call the tempalte dynamicly:
<xsl:call-template name="{$var1}" saxon:allow-avt="yes" ></xsl:call-template>
my actual code doens't work even if i use saxon ....
Martin Honnen http://msmvps.com/blogs/martin_honnen/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] using xsl:call-template dynam, Red Light | Thread | RE: [xsl] using xsl:call-template d, Michael Kay |
[xsl] using xsl:call-template dynam, Red Light | Date | RE: [xsl] using xsl:call-template d, Michael Kay |
Month |