Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 22441 invoked from network); 13 Dec 2005 17:26:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Dec 2005 17:26:03 -0000 Received: (qmail 17475 invoked by uid 500); 13 Dec 2005 11:49:55 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 17460 invoked by uid 500); 13 Dec 2005 11:49:55 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 17449 invoked by uid 99); 13 Dec 2005 11:49:55 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2005 03:49:55 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [194.109.24.36] (HELO smtp-vbr16.xs4all.nl) (194.109.24.36) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2005 03:49:54 -0800 Received: from [127.0.0.1] (unlabelled-194-126-175-82.versatel.net [82.175.126.194] (may be forged)) (authenticated bits=0) by smtp-vbr16.xs4all.nl (8.13.3/8.13.3) with ESMTP id jBDBnVNf092250 for ; Tue, 13 Dec 2005 12:49:32 +0100 (CET) (envelope-from Geert.Josten@daidalos.nl) Message-ID: <439EB54E.5000607@daidalos.nl> Date: Tue, 13 Dec 2005 12:49:34 +0100 From: Geert Josten Organization: Daidalos BV User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: How to configure the location of external services in the sitemap References: <20051213114721.GC9698@mopti.mokolo.org> In-Reply-To: <20051213114721.GC9698@mopti.mokolo.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Here is a simple alternative: Use input modules to insert the application specific base urls. Something like: 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