cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jessk...@brel.com
Subject RE: Help... C2- How to dynamically create new pages without recompiling sitemap?
Date Wed, 04 Jul 2001 05:16:32 GMT
Dear Cocoon users

Thank you very much to everyone (Vadim, javacocoon@yahoo.com.in, 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 <vgritsenko@hns.com>
  Subject: RE: Help... C2- How to dynamically create new pages without 
recompiling sitemap? 
  Date: Tue, 3 Jul 2001 14:19:32 -0400 
  To: cocoon-users@xml.apache.org, jesskung@brel.com


> -----Original Message-----
> From: jesskung@brel.com [mailto:jesskung@brel.com]
> Sent: Tuesday, July 03, 2001 12:01
> To: cocoon-users@xml.apache.org
> 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: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> 
> 

---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


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

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

Jessica Kung                           jesskung@brel.com.sg
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message