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

RE: FOP calling a template dynamically

Subject: RE: FOP calling a template dynamically
From: "Martinez, Brian" <brian.martinez@xxxxxxxx>
Date: Fri, 6 Dec 2002 12:54:47 -0700
fop template
> 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


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.