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/08/04 06:21:02 UTC

RE: cocoon:/ not using current sitemap

Please try with latest 2.0.4-dev CVS.

Vadim


> From: David Trammell [mailto:david.trammell@bondtrac.com]
> 
> I cannot get the cocoon:/ protocol to work when using it from a
sitemap
> that was mounted from another internal request using the cocoon:/
> protocol.  I have included snippets of my two sitemaps that duplicates
> this.
> 
> Have I misunderstood how the cocoon:/ protocol works, or is this a
bug?
> It works if I do not use cocoon:/ within the second sitemap and
generate
> the xhtml directly.  It also works if I do not use cocoon:/ in the
first
> one and directly mount the style sitemap.
> 
> The requested URL is something like http://localhost/test/admin/users
> 
> sitemap.xmap :
> ---------------
>     <map:pipelines>
>         <map:pipeline internal-only="true">
>             <map:match pattern="*/getstyle/**">
>                 <map:mount check-reload="yes" src="style.xmap"
> uri-prefix="{1}/getstyle"/>
>             </map:match>
>         </map:pipeline>
> 
>         <map:pipeline>
>             <map:match pattern="*/**">
>                 <map:generate src="cocoon:/{1}/getstyle/muni"/>
>                 <map:serialize/>
>            </map:match>
>         </map:pipeline>
>     </map:pipelines>
> 
> style.xmap :
> ---------------
>     <map:pipelines>
>         <map:pipeline internal-only="true">
>             <map:match pattern="getpanel">
>                 <map:generate src="test.xhtml"/>
>                 <map:serialize type="xml"/>
>             </map:match>
>         </map:pipeline>
> 
>         <map:pipeline>
>             <map:match pattern="muni">
>                 <map:generate src="cocoon:/getpanel"/>
>                 <map:serialize/>
>            </map:match>
>         </map:pipeline
>     </map:pipelines>
> 
> 
> Thanks
> David


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