You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Sven Kuenzler <sv...@gmx.net> on 2001/06/13 18:44:30 UTC

Re: adding context

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


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>