You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by David Trammell <da...@bondtrac.com> on 2002/07/24 17:58:50 UTC

cocoon:/ not using current sitemap

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>


Re: cocoon:/ not using current sitemap

Posted by Jens Lorenz <je...@interface-projects.de>.
----- Original Message -----
From: "David Trammell" <da...@bondtrac.com>
To: <co...@xml.apache.org>
Sent: Wednesday, July 24, 2002 5:58 PM
Subject: cocoon:/ not using current sitemap


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

AFAIR this behavior is known as bug #9736.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9736


> 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


Jens

--

jens.lorenz at interface-projects dot de

interface:projects GmbH                             \\|//
Tolkewitzer Strasse 49                              (o o)
01277 Dresden                               ~~~~oOOo~(_)~oOOo~~~~
Germany


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


RE: cocoon:/ not using current sitemap

Posted by Vadim Gritsenko <va...@verizon.net>.
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>