cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geert Josten <Geert.Jos...@daidalos.nl>
Subject Re: dynamic template matches (was: multiple xpaths)
Date Tue, 04 Oct 2005 07:27:50 GMT
(changed the subject line)

> An other Idea i came up with yesterday was the use of names for your
> template.
> So if you do a
> <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".
> 
> Christoph

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

Cheers,
Geert

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


Mime
View raw message