The first thing to do is look at the 'mount' capability. This works like the unix 'mount' command and means that all requests starting with a certain path are handled by your mini sitemap.
eg (assuming unix - Windows user should be able to figure it out :) cd /var/tomcat4/webapps/cocoon mkdir mount (it's not there automatically :( mkdir mount/mini Now create a minimal sitemap.xmap and put it in there... eg: <?xml version="1.0"?> <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0"> <!-- =========================== Components ================================ --> <map:components> <map:generators default="file"> <map:generator name="file" src="org.apache.cocoon.generation.FileGenerator" label="content" pool-max="20" pool-min="2" pool-grow="4"/> </map:generators> <map:transformers default="xslt"/> <map:readers default="resource"> <map:reader name="resource" src="org.apache.cocoon.reading.ResourceReader"/> </map:readers> <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=""> <map:redirect-to uri="welcome"/> </map:match> <map:match pattern="welcome"> <map:generate src="samples.xml"/> <map:transform src="simple-samples2html.xsl"/> <map:serialize/> </map:match> <map:handle-errors type="404"> <map:transform src="error2html.xsl"/> <map:serialize/> </map:handle-errors> </map:pipeline> </map:pipelines> </map:sitemap> then all requests starting: http://localhost:8180/cocoon/mount/mini/ are handled by the mini sitemap. finally, from the webapps/cocoon directory cp stylesheets/simple-samples2html.xsl mount/mini/ cp stylesheets/error2html.xsl mount/mini/ cp docs/samples/samples.xml mount/mini/ No need to restart anything :) You can mkdir mini2 and add another sitemap etc etc. Also look at: http://xml.apache.org/cocoon/ctwig/index.html David > -----Original Message----- > From: me [mailto:[EMAIL PROTECTED]] > Sent: 18 December 2001 10:12 > To: cocoon-users > Subject: Cocoon, XSP and many questions > > > Hi everybody, > > i just started developing with cocoon2 a few days ago. > Unfortunatly i can > not find sample code or even good tutorials. > > I have to solve the following problem. i have several xml > files. one with > content (content001.xml - content300.xml) and two or three > abstract files > (abstract001.xml - abstract300.xml). and there is a file > called sitemap.xml > which contains informations about navigation structure and > what kind of > abstract files should be shown. > Depending on the parameter the site is called, i want to > build a "small" > version of the sitemap, with just the navigation informations > i have and > want to know which content and abstract documents are to > load. Than i want > to merge the "small" sitemap, the content and the abstract > xml documents. > Right know i know how to merge xml files but unfortunatly i > have no idea how > to build the small sitemap and get informations out of it. > Can anyone held me? Or tell me a good tutorial site about cocoon? > > regards, > Nick Fingerhut > > > --------------------------------------------------------------------- > 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]> > --------------------------------------------------------------------- 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]>