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

Re: call template

Subject: Re: call template
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Wed, 15 Aug 2001 10:05:16 -0700 (PDT)
re call template
> I want to use the call-template function but the template name is a
> variable....how is this done.....
> The value of the template I want to call is in the xml node of nameofpage.
> How can I call the template using the value that is in the node nameofpage.
> Right now it's calling the template called "nameofpage" but I want the value
> of it from the xml.
> 
> <xsl:call-template name="nameofpage"/>
>
>Can this be done?

Not in pure XSLT: 
http://www.dpawson.co.uk/xsl/sect2/N1711.html#d91e21

But (again in pure XSLT) you can use the idea of generic templates which gives you
almost the same:

http://www.dpawson.co.uk/xsl/sect2/generic.html#d135e18

http://lists.fourthought.com/pipermail/exslt/2001-May/000169.html

http://www.vbxml.com/downloads/default.asp?id=v2001611171627

Hope this helped.

Cheers,
Dimitre Novatchev.


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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


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.