You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Vadim Gritsenko <va...@verizon.net> on 2002/09/17 16:39:52 UTC

Re: context in sub-sitemap

Sushil Bhattarai wrote:

> Hi
>
> I was wondering how I can use "context://" or something similar to 
> pick up value for my parameter from my sub-sitemap folder rather than 
> from servlet. I want map:parameter to pick up getMethod.xml from 
> folder that has it's own sub-sitemap. If I give only 
> "xml/getMethod.xml" it doesn't find the file and if I give context:// 
> it looks in cocoon/xml/getMethod.xml. A part of my sub-sitemap looks 
> like this
>
> <map:match pattern="discardToken">
>    <map:act type="database-auth-action">
>       <map:parameter name="descriptor" 
> value="context://xml/getMethod.xml"/>
>

Try using:
<map:parameter name="descriptor" value="getMethod.xml">

It should pick up getMethod.xml in current sitemap folder.

Vadim

 

>       <map:generate src="xsp/invalidAuth.xsp" type="serverpages"/>
>      <map:serialize mime-type="text/xml" type="xml"/>
>     </map:act>
>    <map:generate src="xsp/invalidAuth.xsp" type="serverpages"/>
>    <map:serialize mime-type="text/xml" type="xml"/>
> </map:match>
>
> Sushil
>


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