cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bertrand Delacretaz" <bdelacre...@apache.org>
Subject Re: RE:RE: Localization and caching
Date Tue, 11 Jul 2006 08:52:11 GMT
On 7/11/06, Yves Zoundi <biblyzo@hermes.ulaval.ca> wrote:

> ...What I suspect is that Cocoon is caching everything from the instruction
> map:act :
> <map:pipeline>
>  <map:act type = "locale">
>    <map:match pattern = "index.xml"/>
>    <map:generate src = "index.xsl"/>
>    <map:transform type = "i18n">
>     <map:parameter name = "locale" value = "{../locale}"/>
>    </map:transform>
>  </map:act>
> </map:pipeline>...

Whithout having studied your problem in detail, a workaround that
comes to mind is to use a secondary pipeline where the locale is
explicit in the URL:

<map:match pattern="with-locale-*/**">
  ...use {1} as the locale here, this should get cached properly
</map:match>

<map:match pattern="**">
  <map:act type="locale">
    <map:generate src="cocoon:/with-locale-{locale}/{../1}"/>
  </map:act>
</map:match>

HTH,
-Bertrand

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


Mime
View raw message