cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <>
Subject Re: Using Path expression in Map Action type
Date Thu, 05 Jun 2003 14:23:16 GMT
Geissel, Adrian wrote:

>Hi Shane,
>I've done something similar to what you're looking for with version 2.0
>(don't know if it still works!):
><map:act type='substitute(listOfMaps, "{../1}")'/>
>Note - single quotes are important (valid XML attribute definition - allows
>the use of plain double-quotes!)

Wow, clever but *evil* hack : injection of Java code in the sitemap. As 
Christian said : this will break as soon as you use the newest sitemap 
engine (which is the only one available in 2.1).

The "type" attribute is static for every sitemap statement. This is a 
design choice, as allowing dynamic types can quickly lead to 
non-understadable and unmaintainable sitemaps.


Sylvain Wallez                                  Anyware Technologies 
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }

View raw message