xsl-list
[Top] [All Lists]

Re: [xsl] dynamic template naming XSL1.0 and Saxon 6.5.5

2006-06-19 01:36:44
On 6/19/06, news(_at_)swisslab(_dot_)de <news(_at_)swisslab(_dot_)de> wrote:
Hello List,

I want to call templates dynamicly. With dynamicly I mean, that the
templates name is determined at runtime.
I doing this with xPathes stored in variables and the saxon:evaluate
function allready, and it works pretty fine.
For instance. I have a variable with an stored string that I want to be the
templates name that should be executed.
<xsl:variable name="testVar">
  <Configuration>
    <Execute template="templateName"/>
  </Configuration>
</xsl:variable>

If I try
<xsl:call-template
name="{saxon:evaluate($testVar/Configuration/Execute/@template)}"/>

I want a template with the name of 'templateName' to be executed.
<xsl:template name="temlpateName">
...
</xsl:template>

I ll get a error message saying that the name of the called template must be
a valid Qname. :(

Does anyboy know how I could solve my problem?

What problem are you trying to solve, as this kind of question is
usually a hint that you are approaching it from the wrong angle...

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>