This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: how to call a named template with a variable's value


> 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>
> 
Standard XSLT provides no way of doing this.

Saxon has an extension that allows you to write:

<call-template name="{$template-name}" saxon:allow-avt="yes">

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]