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

call-template with variable

Subject: call-template with variable
From: "Benjamin Corliss" <benjamin@xxxxxxxxxxxxxxx>
Date: Thu, 16 Dec 1999 14:53:16 -0800
call template with variable
I am refactoring a style-sheet that generates several pages of HTML.

I am attempting to use an html-template for the "shell" of each html page
and pass this html-template the name of another template that would produce
the actual content of the html page.


	<xsl:template name="html-template">
		<xsl:param name="page-name"/>
		<xsl:param name="page-title"/>
		<xsl:param name="content-template"/>
		<xsl:param name="depth">0</xsl:param>
		<xsl:param name="path"/>
		.
		.
		.
		<!-- is the following possible? -->
		<xsl:call-template name="$content-macro"/>
		.
		.
		.

LotusXSL complains: XSL Error: Could not find template named:
'$content-macro'

It appears that the variable does not get expanded in this case.

I checked the recommendation about this, and it is unclear whether this is
allowed or not.

Is this impossible, or am I simply doing something wrong.

Thanks for the help!

Benjamin


 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.