xsl-list
[Top] [All Lists]

Re: [xsl] dynamic template caller problems

2006-07-30 11:34:50
On 7/30/06, Smoother(_at_)gmx(_dot_)de <Smoother(_at_)gmx(_dot_)de> wrote:
 <xsl:value-of select="$template" /> <!-- e.g. 'template_b' -->

 <!-- This will not work, since name= always requires a QName :( -->
 <xsl:call-template name="$template" />

 <!-- ??? how to call/apply the related template ??? -->

</xsl:template>
My question is, how I realize this idea of a dynamic template caller best. 
Thanks in advance, S. Renault.

With XSLT, we cannot decide the template name at runtime. However,
Saxon has an extension instruction saxon:call-template to realize this
feature.

You can realize this feature with FXSL library also.

--
Regards,
Mukul Gandhi

http://gandhimukul.tripod.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>