cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Haul <>
Subject Re: VariableResolver doesn't resolve Variables inside ModuleVariable
Date Sat, 17 May 2003 19:17:05 GMT
On 17.May.2003 -- 07:10 PM, wrote:
> Hi,
> I have the following use case inside the Sitemap:
> <map:match pattern="*/**">
>   <map:mount check-reload="yes" src="{mount:{1}}/" uri-prefix="{1}"/>
> </map:match>

Right, this is not supported ATM.

> look at the source attribute "src="{mount:{1}}/"
> I want to define a mapping between the URI space and the Filesystem space.
> My idea was, using an InputModule which defines this mapping. The problem
> is, that in the moment it is not possible to hand over the {1} Variable to
> the InputModule.

You could query the request module for the last part of the URL with the
help of jxpath.

> If there is no other possibility I can create a patch
> (PreparedVariableResolver) to make this possible.

I'm not very much in favour of doing that. OTOH, you're at least
the second with this request... I'd really prefer if there were a
module that could access the sitemap variables.

C h r i s t i a n       H a u l
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

View raw message