Phil Blake wrote:
> I have a directory with common resources like images and pdfs thyat
> are used by all sections of the site. I also have other directories
> with resources that are specific to a certain part of the site.
>
> So... If the url points to a specific resource, and it doesn't exist
> then it returns the common resource. (assuming it exists)
>
> I thought this might do the trick:
>
> <map:match pattern="*/**images/**.jpg">
> <map:act type="resource-exists">
> <map:parameter name="url"
> value="{1}/resources/images/{3}.jpg"/>
> <map:read src="{1}/resources/images/{3}.jpg"
> mime-type="image/jpeg"/>
> </map:act>
> <map:redirect-to uri="common/images/{3}.jpg"/>
> </map:match>
>
> but got the error:
>
> org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
> java.io.FileNotFoundException: /resources/images/.jpg (No such file or
> directory)
>
> The Sitemap substitutions don't appear to be available in the action.
> What have I done wrong?
Follow Barbara's advice. See also:
http://xml.apache.org/cocoon/faq/faq-sitemap.html#faq-7
Vadim
> Thanks in advance,
>
> Phil
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>