cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira ...@upaya.co.uk>
Subject Re: String replacement within the sitemap?
Date Sun, 16 May 2004 15:09:44 GMT
Joerg Heinicke wrote:

> On 15.05.2004 17:37, Jorg Heymans wrote:
>
>>> 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.
>>>
>>
>> Baffled again by cocoon's flexibility, how can anyone find out about 
>> this stuff? Is this documented?
>
>
> http://cocoon.apache.org/2.1/userdocs/concepts/modules.html
>
> Some of the input modules are JXPath-enabled, so you can use XPath 
> expressions to access values (see Input Modules sample for details). 
> The following example demonstrates the use of XPath function with 
> system-property module.
>
> <map:parameter name="users-home-base"
>   value="{system-property:substring-before(user.home, user.name)}"/>
>
> --------------------------------------------------------------------
>
> This is a hint for me that the above translate *might* work.

So, what this means is that we need a pure jxpath input module, to work 
with the nested input module support in 2.1.5. Maybe some configuration 
for the jxpath meta module. So we could do:

<map:parameter name="foo" value="{jxpath:substring-before({1},{2}}"/>

Interesting.

Upayavira



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


Mime
View raw message