cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KOZLOV Roman <r-koz...@opencascade.com>
Subject Re: image internationalization
Date Mon, 04 Mar 2002 09:36:49 GMT
Try {../2} instead of {2} because you have to refer to a sitemap of a
pattern and not to a sitemap of an action.

    Best regards.

Niket Anand wrote:

> Hi All,I want to configure pipeline such that in case of any locale
> language it will find the image from corresponding language mapped
> image folder.eg,If locale lang is en then it should find image from
> images_en folder. But I am not able to assign {2} value in pipeline(it
> should be the name of image assigned in match pattern).I define image
> src as src="forms/submit.gif" in xsp or xml file.According to it, it
> should find image with name submit.gif from images_en folder.But here
> {2} value is not assigned(it assigned images_en\.gif), so it could not
> find image from images_en folder. <map:match pattern="**forms/**.gif">
>
>     <map:act type="locale">
>     <map:read src="images_{lang}/{2}.gif" mime-type="image/gif"/>
>     </map:act>
>    </map:match> Please guide me how to use this concept.Thanks,Niket


---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message