This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
how to call a named template with a variable's value
- To: xsl-list at mulberrytech dot com
- Subject: how to call a named template with a variable's value
- From: Donald Ball <balld at webslingerZ dot com>
- Date: Wed, 26 Apr 2000 12:59:14 -0400 (EDT)
- Reply-To: xsl-list at mulberrytech dot com
Hiya. I'm looking to call a named template like this:
<param name="template-name"/>
<call-template name="$template-name">
<with-param name="foo">bar</with-param>
</call-template>
unfortunately, it doesn't work, at least not with Xalan. Is there an
alternate way I could do this? I just want to invoke one out of a set of
templates based on the value of a variable at runtime.
- donald
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list