Hi Michael,
first you have to mount your sitemap from the rootsitemap (normally in
webapps/cocoon/sitemap.xmap). The statemant for this is: map:mount. There
you'll find examples.
When you have done this. You have to access via:
http://localhost:8080/cocoon/Projekte/Cocoon2/tests/simple you named your
pattern "tests/simple" so you can't get an answer when you want to receive
"tests/simple.xml"
Hope this helps
by
Tobi
Michael Bierenfeld wrote:
> Hi there,
>
> :-) I am still struggling with c2. I have the following dir structure
>
> webapps/cocoon/Projekte/Cocoon2/tests/simple.xsp
> /stylesheets/simple-page2html.xsl
> /stylesheets/error2html.xsl
>
> And the following sitemap.xmap in webapps/cocoon/Projekte/Cocoon2
>
> <?xml version="1.0"?>
>
> <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
>
> <!-- =========================== Components
> ================================ -->
>
> <map:components>
>
> <map:generators default="file"/>
>
> <map:transformers default="xslt"/>
>
> <map:readers default="resource"/>
>
> <map:serializers default="html"/>
>
> <map:selectors default="browser"/>
>
> <map:matchers default="wildcard">
> <map:matcher name="wildcard"
> src="org.apache.cocoon.matching.WildcardURIMatcherFactory"/>
> </map:matchers>
>
> </map:components>
>
> <!-- =========================== Pipelines
> ================================= -->
>
> <map:pipelines>
> <map:pipeline>
>
> <map:match pattern="tests/simple">
> <map:generate src="tests/simple.xsp"/>
> <map:transform src="stylesheets/simple-page2html.xsl"/>
> <map:serialize/>
> </map:match>
>
> <map:handle-errors>
> <map:transform src="stylesheets/error2html.xsl"/>
> <map:serialize status-code="500"/>
> </map:handle-errors>
>
> </map:pipeline>
> </map:pipelines>
>
> </map:sitemap>
>
> <!-- end of file -->
>
> I am somewhat stuck. Every time I try to access
> http://localhost:8080/cocoon/Projekte/Cocoon2/tests/simple.xsp I receive
> "Dokument contains no data". The Access to this uri is logged in
> cocoon/WEB-INF/cocoon.log but there is no hint about an error or an
> misconfiguration. It would be very kind if any of the C2 gurus could
> point me in the correct direction
>
> Regards
>
> Michael
>
> ---------------------------------------------------------------------
> 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: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
--
Tobias Luikard
____ |X________________________
X|
eXXcellent solutions gmbh
In der Wanne 55
D-89075 Ulm
e | [EMAIL PROTECTED]
t | +49 [0]731-55026-22
f | +49 [0]731-55026-99
i | www.eXXcellent.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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>