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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to