cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylvain.wal...@anyware-tech.com>
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!):
>
>Try:
>
><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

-- 
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }



Mime
View raw message