> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 03, 2001 12:01 > To: [EMAIL PROTECTED] > Subject: Help... C2- How to dynamically create new pages without recompiling sitemap? > > > Dear Cocoon users > > We are in the midst of implementing a publishing tool using Cocoon 2. We > understand that in order to add a new web page into the system, we will > need to update the sitemap file and recompile this. We may need to > restart Tomcat as well in order for the system to recognise the new web > page. > > Please let me know if the above assumptions are correct. Perhaps we are > using it wrongly. Your assumptions are not correct; please look into sample sitemap: <map:match pattern="xsp/*"> <map:generate type="serverpages" src="docs/samples/xsp/{1}.xsp"/> <map:transform src="stylesheets/dynamic-page2html.xsl"> <map:parameter name="view-source" value="docs/samples/xsp/{1}.xsp"/> </map:transform> <map:serialize/> </map:match> This pipeline works for any request of form "xsp/*", and cocoon2 demo have 6 *.xsp files in docs/samples/xsp/ directory. It is just matter of adding new xsp file to it in order to add new page. That's it. No restart is required. This is just an example. You should update it in a way you need. PS However, it is possible to write such a sitemap so you need to recompile it every time you add something new. It's just a matter of how you write your sitemap. Vadim > > However, we are building a system to allow the content owners to > dynamically add new web pages. If the above conditions are true, and our > system has about 10 content owners, must we restart Tomcat and recompile > the sitemap each time the owners add new pages? > > Please help... We are rushing to implement this system in 2 weeks time > and really need all the help we can. > > Your help is very very much appreciated. > > Thanks a zillion in advanced! > > Regards, > Jessica > > > --------------------------------------------------------------------- > 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]>