Hi, Cocooners! A simple question: why in a sub sitemap we need to add <map:components /> if we add anything to the list? Isn't it possible to inherit components implicitly?
I ask this, because in response to multiple user requests for having something simple to start with in Cocoon and also for my colleagues I'd like to create a very simple application template that can be easily used for playing with Cocoon. Sample's directory is this: /root <-- suggest a better name for the root /xml /xsl /xsp Without that declaration a Cocoon Newbie's sub-sitemap can look like below (mounted to samples/): <?xml version="1.0"?> <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0"> <!-- Processing pipelines --> <map:pipelines> <map:pipeline> <!-- Process static content --> <map:match pattern="*.xml"> <map:generate src="xml/{1}.xml" /> <map:transform src="xsl/style.xsl" /> <map:serialize /> </map:match> <!-- Process dynamic content --> <map:match pattern="*.xsp"> <map:generate type="serverpages" src="xsp/{1}.xsp" /> <map:transform src="xsl/style.xsl" /> <map:serialize /> </map:match> </map:pipeline> </map:pipelines> </map:sitemap> <!-- end of file --> And the instructions would be like this: - create an XML file, then place it in /xml directory - create a stylesheet, then place it in /xsl directory [- create an XSP page, place it into /xsp directory] Enter the URL of your page: http://localhost:8080/cocoon/samples/root/page.xml Quite easy and simple. So, my questions are: - how to remove <map:componenets /> - what is the best place for such a template/sample - is it worth making a special target for building a minimal Cocoon containing a very minimal set of features? Regards, Konstantin Piroumian _________________________________________ Konstantin Piroumian Lead Developer ICQ#: 2297575 ( Work Tel#: +7 095 795 0520 * 1288 + More ways to contact me i See more about me _________________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]