[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: FOP calling a template dynamically
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|