You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Daniel Pfuhl <pf...@yahoo.de> on 2001/06/13 16:39:23 UTC
C2: adding context
Hi
I'm trying to add one more context to my
sitemap usinf this syntax:
<map:match pattern="myown">
<map:generate src="docs/myown/index.xml"/>
<map:transform
src="stylesheets/myown/default.html.xsl"/>
<map:serialize/>
</map:match>
using the pathinfos relative to my
TOMCAT_HOME/webapps/cocoon
do I have to make more changes in the sitemap?
trying to access the context Cocoon says:
The requested URI "/cocoon/myown/index.xml" was not
found.
request-uri:
/cocoon/myown/index.xml
any suggestions ??
daniel
=====
--------------------------------------------------------
Daniel Pfuhl
mailto:daniel@dphome.de
__________________________________________________________________
Do You Yahoo!?
Gesendet von Yahoo! Mail - http://mail.yahoo.de
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: adding context
Posted by Daniel Pfuhl <pf...@yahoo.de>.
Hi
sorry, but this won't help me out :-(
still not found...
daniel
--- Sven Kuenzler <sv...@gmx.net> schrieb: > > I'm
trying to add one more context to my
> > sitemap usinf this syntax:
> >
> > <map:match pattern="myown">
> > <map:generate src="docs/myown/index.xml"/>
> > <map:transform
> > src="stylesheets/myown/default.html.xsl"/>
> > <map:serialize/>
> > </map:match>
>
> Cocoon matchers work somewhat different from what
> you may be used to from
> Tomcat contexts and the like.
> The matcher you wrote matches the URI
> http://yourhost/cocoon/myown only.
> (Enter this in your browser and you should get the
> index.xml page.
>
> If you want the page to be accessible as
> http://yourhost/cocoon/myown/index.xml, try this:
>
> <map:match pattern="myown/*">
> <map:generate src="docs/myown/{1}"/>
> <map:transform
> src="stylesheets/myown/default.html.xsl"/>
> <map:serialize/>
> </map:match>
>
> HTH,
> Sven.....
>
>
>
---------------------------------------------------------------------
> Please check that your question has not already been
> answered in the
> FAQ before posting.
> <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail:
> <co...@xml.apache.org>
> For additional commands, e-mail:
> <co...@xml.apache.org>
>
=====
--------------------------------------------------------
Daniel Pfuhl
mailto:daniel@dphome.de
__________________________________________________________________
Do You Yahoo!?
Gesendet von Yahoo! Mail - http://mail.yahoo.de
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: adding context
Posted by Sven Kuenzler <sv...@gmx.net>.
> I'm trying to add one more context to my
> sitemap usinf this syntax:
>
> <map:match pattern="myown">
> <map:generate src="docs/myown/index.xml"/>
> <map:transform
> src="stylesheets/myown/default.html.xsl"/>
> <map:serialize/>
> </map:match>
Cocoon matchers work somewhat different from what you may be used to from
Tomcat contexts and the like.
The matcher you wrote matches the URI http://yourhost/cocoon/myown only.
(Enter this in your browser and you should get the index.xml page.
If you want the page to be accessible as
http://yourhost/cocoon/myown/index.xml, try this:
<map:match pattern="myown/*">
<map:generate src="docs/myown/{1}"/>
<map:transform
src="stylesheets/myown/default.html.xsl"/>
<map:serialize/>
</map:match>
HTH,
Sven.....
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>