Since you have a map:act wouldn't you rather use {../1} instead of {1} in
the body of mp:act ?

I am not sure but these are my 2 cents.

Have a nice day,

Babs
--
website: www.babsfrance.fr.st
ICQ #: 135868405
----- Original Message -----
From: "Phil Blake" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 09, 2002 7:17 AM
Subject: sitemap substitution in actions


> 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?
>
> 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]>
>
>


---------------------------------------------------------------------
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]>

Reply via email to