[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: dynamic template caller problems

Subject: Re: dynamic template caller problems
From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx>
Date: Mon, 31 Jul 2006 00:04:33 +0530
Re:  dynamic template caller problems
On 7/30/06, Smoother@xxxxxx <Smoother@xxxxxx> 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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.