forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ross Gardler <rgard...@apache.org>
Subject Re: Help with locationmap
Date Sat, 15 Apr 2006 20:49:23 GMT
Thorsten Scherler wrote:
> El sáb, 15-04-2006 a las 11:02 +0100, Ross Gardler escribió:
> 
>>Thorsten Scherler wrote:
>>
>>>Yes, you need to match in your project sitemap as well since the
>>>locationmap is not used by default for resolving.
>>>
>>>Add 
>>><map:match pattern="remote/**.xml">
>>> <map:generate src="lm://remote/**.xml"/> 
>>> <map:serialize type="xml"/>
>>></map:match>
>>
>>I trust that you have made some changes in the dispatcher then. In core 
>>pretty much all resources are resolved via the locationmap, including 
>>xml sources.
> 
> 
> Did not find the code snippet, can you point me to it?
> 
> I did not made any changes in the dispatcher regarding this matter.
> However the request cocoon://remote/bla.xml need to be resolved.

Forrest.xmap:

<map:match pattern="**.xml">
          <map:generate src="{lm:project.{0}}"/>
          <map:serialize type="xml"/>
</map:match>

locationmap.xmap:

<match pattern="project.**">
   <location src="{project:content.xdocs}{1}" />
</match>

Ross


Mime
View raw message