Matthew Hailstone wrote:
>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">
>
1> Entered match scope
> <map:act type="request">
> <map:parameter name="parameters" value="true"/>
>
2> Entered act "request" scope
> <map:act type="resource-exists">
>------------------- section of change -------------------------------
> <map:parameter name="url" value="download/{file}"/>
>
3> Entered act "resource-exists" scope
> <map:read src="download/{../file}"/>
>------------------- section of change -------------------------------
>
3> About to exit act "resource-exists" scope
> </map:act>
>
2> Again at act "request" scope
> <map:generate src="filenotfound.xml"/>
> <map:transform src="filenotfound2html.xsl"/>
> <map:serialize/>
>
2> About to exit act "request" scope
> </map:act>
>
1> About to exit match scope
> </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?
>
See at scopes of variables. Parameters are not separate entities but
belong to the parent tag (same as in XSLT).
Vadim
>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">
>> ar<map:p nameter"uame=
>>
>>
>vrl" D"alue:ddownlo}"/{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]>