| Subject: Re: [xsl] FOP calling a template dynamically From: "Noel Golding" <noel@xxxxxxxxxxxxxxx> Date: Fri, 6 Dec 2002 14:16:08 -0500 | 
not tested but you could try
<xsl:call-template name="{../@tplt}"   />
----- Original Message -----
From: "Charles Ohana" <cohana@xxxxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, December 06, 2002 2: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"   />
>       ...
>    </xsl:for-each>
> </xsl:template>
>
> My XML look like
> <root tplt="tp1">
>    <data firstname="Chuck" lastname="Ohana" />
>    <data firstname="Patrick" lastname="OMalley" />
>    <data firstname="Sean" lastname="Donovan" />
> </root>
>
>
> Does anyone know what am I doing wrong
>
> Please Help
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
| Current Thread | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| [xsl] FOP calling a template dynami, Charles Ohana | Thread | Re: [xsl] FOP calling a template dy, Charles Ohana | 
| [xsl] FOP calling a template dynami, Charles Ohana | Date | [xsl] :o) (Re: qualitative decline , Dimitre Novatchev | 
| Month |