Subject: RE: FOP calling a template dynamically
From: "Martinez, Brian" <brian.martinez@xxxxxxxx>
Date: Fri, 6 Dec 2002 12:54:47 -0700
|
> From: Charles Ohana [mailto:cohana@xxxxxxxxxxxxxxx]
> Sent: Friday, December 06, 2002 12:15 PM
> Subject: 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.martinez@xxxxxxxx |
| 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
|