Dear Cocoon users

Thank you very much to everyone (Vadim, [EMAIL PROTECTED], Sergio) for 
their kindness for responding to me. I will test the system as recommended and 
inform you of the outcome. We hope to put up a FAQ for such issues encountered 
so that the Cocoon newbies can use.

Regards,



------------------------
  From: Vadim Gritsenko <[EMAIL PROTECTED]>
  Subject: RE: Help... C2- How to dynamically create new pages without 
recompiling sitemap? 
  Date: Tue, 3 Jul 2001 14:19:32 -0400 
  To: [EMAIL PROTECTED], [EMAIL PROTECTED]


> -----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]>


---------------End of Original Message-----------------

........................................................

Jessica Kung                           [EMAIL PROTECTED]
Brel Software Pte Ltd                  Tel: 65-272-6800
Blk 1003 Bukit Merah Central           Fax: 65-272-2811
#07-01/02                              http://www.brel.com
Singapore 159836                       07/04/01 13:16:33
                    
           Pls call us for the following services
         Web Creation, Web, Email & Domain Hosting
                 B2B B2C ASP CMS E-Commerce


---------------------------------------------------------------------
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]>

Reply via email to