Vadim,
  Thanks for relating my problem to the FAQ. Now I understand. :) That
was the problem.

Interesting to note, though, here is the change that fixed the problem:

  <!-- Download Server -->
  <map:pipeline>
      <map:match pattern="download">
          <map:act type="request">
              <map:parameter name="parameters" value="true"/>
              <map:act type="resource-exists">
-------------------  section of change  -------------------------------
                  <map:parameter name="url" value="download/{file}"/>
                  <map:read src="download/{../file}"/>
-------------------  section of change  -------------------------------
              </map:act>
              <map:generate src="filenotfound.xml"/>
              <map:transform src="filenotfound2html.xsl"/>
              <map:serialize/>
          </map:act>
      </map:match>
  </map:pipeline>

Notice that I changed the path to the variable in the map:read but not
the map:parameter. When I changed the map:parameter use of the {file}
variable, I got the html page generated by the filenotfound xml and xsl
portions of the pipeline. Why is this so?

Thanks,

Matthew

P.S. Tammo, thanks for pointing me to the logs. It helped me understand
what was going on a little better. :)

>pipeline:
>
>  <!-- Download Server -->
>  <map:pipeline>
>      <map:match pattern="download">
>          <map:act type="request">
>              <map:parameter name="parameters" value="true"/>
>              <map:act type="resource-exists">
>                  <map:parameter name="url" value="download/{file}"/>
>                  <map:read src="download/{file}"/>
>              </map:act>
>              <map:generate src="filenotfound.xml"/>
>              <map:transform src="filenotfound2html.xsl"/>
>              <map:serialize/>
>          </map:act>
>      </map:match>
>  </map:pipeline>
>

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