cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Hermann <christoph.herm...@guschtel.de>
Subject Re: dynamic template matches
Date Tue, 04 Oct 2005 09:31:26 GMT
Geert Josten schrieb:

Hello,

>> [named/mode templates]
>> <xsl:template match="*">
>>     <xsl:apply-templates select="xalan:evaluate($parameter_xpath)"
>> mode="{$parameter_xpath}" />
>> </...>
>>
>> and then a
>> <xsl:template match="*" mode="{$parameter_xpath}" ...>
>>
>> (untested)
>> I don't know if this works, maybe substitute the
>> mode="{$parameter_xpath}" with mode="somestring".

> No, this gets worse, actually. You cannot use parameters or expressions
> at all in a mode attribute. :-(
> 
> And by replacing the expression by a string, you remove the dynamic
> element again.. :-P

Why? I mean the "xpath string" is still evaluated for a different xpath.
Or do you need every xpath to be processed differently?
If then make the difference by looking at your variable (which is static).

Or did i get sth wrong?
Christoph

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message