From: Charles Ohana [mailto:cohana(_at_)investacorp(_dot_)com]
Sent: Friday, December 06, 2002 12:15 PM
Subject: [xsl] FOP calling a template dynamically
Hello Friends,
I have an XML document that provides the name of the template
to be called .
I'm doing the following without success .
<xsl:template match="/root">
<xsl:for-each select="/root/data">
...
<xsl:call-template name="../@tplt" />
Stop here. You cannot invoke a template using a dynamically-generated name
attribute. The template name must be known at compile time.
You should rethink how to process the data elements, probably by using
xsl:apply-templates instead of a for-each.
cheers,
b.
| brian martinez
brian(_dot_)martinez(_at_)trip(_dot_)com |
| senior gui programmer 303.708.7248 |
| trip network, inc. fax 303.790.9350 |
| 6436 s. racine cir. englewood, co 80111 |
| http://www.cheaptickets.com/ http://www.trip.com/ |
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list