cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <vadim.gritse...@verizon.net>
Subject Re: Download Server - directory access denied
Date Tue, 20 Aug 2002 17:39:18 GMT
Matthew Hailstone wrote:

>I see. So the <map:parameter> element, notwithstanding it is inside the
><map:act type="resource-exists"> element, is actually still inside the
><map:act type="request"> element's scope.
>

Yes, this is correct.


> From your comment, I suppose I
>should have known this because it follows the XSLT specification.
>

No, this has no relation to XSLT spec.
Just this seems to be somewhat similar to behavior of xsl:attribute tag 
in XSLT: attribute gets attached to the parent tag (may be this seems 
only to me?)

Vadim


>Thanks again! That is very helpful to know.
>
>Matthew
>
>  
>
>>> <!-- 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>
>>>
>>>      
>>>
>>See at scopes of variables. Parameters are not separate entities but 
>>belong to the parent tag (same as in XSLT).
>>
>>Vadim
>>    
>>




---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message