cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geert Josten <Geert.Jos...@daidalos.nl>
Subject Re: How to configure the location of external services in the sitemap
Date Tue, 13 Dec 2005 11:49:34 GMT
Here is a simple alternative:

Use input modules to insert the application specific base urls. Something like:

<map:generate src="{my-config:base-url}/my-query.xml" />

You have several default input modules at your disposal, for reading properties files, xml,
etc. You 
can define them locally in your sitemap by the way..

Regards,
Geert

Fred Vos wrote:

> Hello,
> 
> At work we are working on a Cocoon application that uses http requests in
> generators. The base URLs in these requests differ for each instance of our
> application. We don't want people to edit the sitemap to change URLs of these
> external services, everytime the sitemap changes. During development we also
> want to keep our local configuration.
> 
> Furthermore we generate links to external services and these links also differ
> for each instance of the application.
> 
> A simple approach is to generate a sitemap.xmap file using a template file for
> the sitemap and an XML document containing a list of external services. A
> simple XSLT script can transform the template sitemap file into a sitemap
> file.
> 
> This requires regenerating the sitemap file after changing either the sitemap
> template or the file with base-URLs.
> 
> For generating links, the XML document with base URLs can be used in the XSL
> script that generates HTML.
> 
> Maybe there are better ways to solve this problem. If anyone has a good
> solution and scripts available, please let me know.
> 
> Fred
> 

-- 
Drs. G.P.H. Josten
Consultant



Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665  JZ  Bleiswijk
Tel: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
www.daidalos.nl


De informatie - verzonden in of met dit emailbericht - is afkomstig van Daidalos BV en is

uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen,
verzoeken 
wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message