You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Gerd Mueller <ge...@smb-tec.com> on 2001/05/10 10:23:24 UTC

Re: language aware images

Am Monday 07 May 2001 02:47 pm schrieb Torsten Curdt:
> Sorry, if this is too OT but...
> I was thinking about something like this:
>
>  <map:match pattern="images/**.gif">
>     <map:act type="lang-select">
>      <map:read src="images/{lang}/{1}.gif" mime-type="image/jpg"/>
>     </map:act>
>  </map:match>
>
> Unfortunately this is predestined to give strange
> browser caching behavior when changing the language.

For language aware images I would suggest to use the I18NTransformer. It can
translate tag attributes. So, you could 'translate' an image href into the 
correct URL.

Best Regards,
Gerd
-- 
______________________________________________________________________
Gerd Mueller                                   mailto:gerd@smb-tec.com
SMB GmbH                                        http://www.smb-tec.com

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>