My apologies for making this email a little too long. I have a link in my $TOMCAT_HOME/webapps/cocoon directory to a directory called "c2-test" (the link has the same name). Further, in c2-test I have a second directory called "testcases". Inside this second directory is a working (yes, I tested it via an independent URL) XSP page called case2.xsp. The complete path relative to the webapps home is cocoon/c2-test/testcases/case2.xsp. What I wanted was a sitemap in my testcases directory to handle stuff there and "cocoon/testcases/xsptest/case2" to be a URL to the case2.xsp above (the "c2-test" part of the path is not in the URL). Here's the main sitemap map:mount entry for the "testcases" sitemap: <map:pipeline> <map:match pattern="testcases/**"> <map:mount uri-prefix="testcases/" src="c2-test/testcases/" check-reload="yes"/> </map:match> </map:pipeline> The idea was that any URL cocoon/testcases/** goes to the testcases sitemap. Then here's the testcases sitemap entry for match arbitrary xsp pages (BTW path is cocoon/c2-test/testcases/sitemap.xmap): <map:match pattern="xsptest/**"> <map:generate type="serverpages" src="{1}.xsp"/> <!-- <map:transform src="/stylesheets/simple-samples2html.xsl"> <map:parameter name="view-source" value="{1}.xsp"/> </map:transform> --> <map:serialize/> </map:match> The parameter might be bogus so I tried browsing case2.xsp with and without it present. Eventually, I commented the entire map:transform entry. Here is the error message I get: Cocoon 2 - Resource not found ---------------------------------------------------------------------------- ---- type resource-not-found message Resource not found description The requested URI "/cocoon/testcases/xsptest/case2" was not found. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/testcases/xsptest/case2 path-info testcases/xsptest/case2 ---------------------------------------------------------------------------- --- So how am I messing this up? BTW, cocoon.log reports no exceptions thrown and the subsitemap appears to be compiling without throwing exceptions. A second question comes from the sitemap lines: <map:match pattern="xsptest/**"> <map:generate type="serverpages" src="{1}.xsp"/> I know that "xsptest/**" is handled by the wildcard matcher (with corresponding class in org.apache.cocoon.matcher I believe), but what handles the entry on the second line, "{1}.xsp"? I've looked through the wildcard matcher and didn't spot anything obvious. Is this the regexp matcher or some type of component other than a matcher? Thank you! Karl Hallowell [EMAIL PROTECTED] --------------------------------------------------------------------- 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]>
[c2] subsitemap problem and a matching question.
HALLOWELL,KARL (HP-Cupertino,ex1) Tue, 10 Jul 2001 16:49:05 -0700