You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by El...@agi.ch on 2003/05/05 15:56:47 UTC
Variable Template Name
Hi
Thx again for the help of the previous problem. I solved the problem in
another way.
But i have a new problem.
Does someone know a solution?
Problem:
<xsl:variable name="templateName">objectives</xsl:variable>
<xsl:call-template name="$templateName"/>
The variable "templateName" is a Value, wich is read from a XML.
The $templateName in call-template does not dissolve.
Elmar Hurni
Web Technologies & Applications
___________________________________________________________________________________
Diese E-Mail ist nur fuer die als Empfaenger genannte Person oder Gesellschaft bestimmt. Wenn Sie diese
E-Mail irrtuemlich erhalten haben, bitten wir Sie, den Absender zu benachrichtigen und die E-Mail auf Ihrem
Computersystem zu loeschen.
___________________________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Variable Template Name
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Elmar.Hurni@agi.ch wrote:
> Problem:
>
> <xsl:variable name="templateName">objectives</xsl:variable>
>
> <xsl:call-template name="$templateName"/>
You can't do this, the value of the name attribute must be a
NC name. You can achieve the effect of dynamic dispatching
by using proper a xsl:apply-templates.
This kind of questions is best asked on the XSL list
http://www.mulberrytech.com/xsl/xsl-list/
This list is dedicated to XSLT and XSLFO in general, rahter
than on using FOP. THere's also a FAQ reachable from the
URL above.
Last note: When learning a new technology it is best to
take at least an introductionary class or read a good
book (see FOP ressources page) rather than resorting to
wild ass guessing. A few days spent for proper education
are easily covered by much higher productivity later.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org