cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: String replacement within the sitemap?
Date Sat, 15 May 2004 06:29:05 GMT
On 14.05.2004 15:28, Jorg Heymans wrote:

> hmmm
> 
> if you have
> <map:match pattern="*_*">
> 
> you could ofcourse subsequently do
> 
> <map:transform type="blah">
>     <map:parameter name="url" value="{1} {2}"/>
> </map:transform>
> 
> but this only works if there is a known fixed amount of underscores in 
> your url....
> 
> Don't think there is straightforward sitemap level functionality for 
> what you're asking, these things can also easily be done in flow or xslt.

AFAIK some of the XSLT functions work in the sitemap too, probably 
through JXPath. *If* translate() works it will look like:
value="{translate({1}, '_', ' ')"
Maybe it needs a namespace prefix for the correct input module.

Joerg

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


Mime
View raw message