> De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> But i have a new problem.
> Does someone know a solution?

I have had the same problem, and I have solved it in a slightly different
way.

> 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.

Yup - this is because the argument to call-template is a QName, that is, the
name of a tag, rather than an XPath expression. 

In my problem, the solution was rather simple. I had something like this in
the xml...

<root>
  <node mode="mode1">
  <node mode="mode2">
  <node mode="mode1">
  <node mode="mode3">
  <node mode="mode4">
</root>

And I ended up just doing this...

<xsl:template match="/">
  <xsl:apply-templates select="root/node"/>
</xsl:template>

<xsl:template match="[EMAIL PROTECTED]'mode1']">
  Mode 1
</xsl:template>

<xsl:template match="[EMAIL PROTECTED]'mode2']">
  Mode 2
</xsl:template>

<xsl:template match="[EMAIL PROTECTED]'mode3']">
  Mode 3
</xsl:template>

<xsl:template match="[EMAIL PROTECTED]'mode4']">
  Mode 4
</xsl:template>

I'm assuming that you can in some way modify your xml to use attributes
rather than parameters to get to the right template.


Hope this helps,
Dave.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to