Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 97398 invoked from network); 23 Jan 2006 00:09:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Jan 2006 00:09:30 -0000 Received: (qmail 57712 invoked by uid 500); 23 Jan 2006 00:09:24 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 57664 invoked by uid 500); 23 Jan 2006 00:09:24 -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 57652 invoked by uid 99); 23 Jan 2006 00:09:24 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jan 2006 16:09:24 -0800 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 64.151.110.219 is neither permitted nor denied by domain of Ralph.Goers@dslextreme.com) Received: from [64.151.110.219] (HELO mail.gosmtp.com) (64.151.110.219) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jan 2006 16:09:23 -0800 Received: from [192.168.10.129] (adsl-66-51-196-164.dslextreme.com [66.51.196.164]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.gosmtp.com (Postfix) with ESMTP id 4CE6F242 for ; Sun, 22 Jan 2006 15:31:37 -0800 (PST) Message-ID: <43D41EA4.3000807@dslextreme.com> Date: Sun, 22 Jan 2006 16:09:08 -0800 From: Ralph Goers Reply-To: rgoers@apache.org User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: Sitemap/Input Module & i18n guru req. References: <20060122222455.YFWL29891.aamta09-winn.ispmail.ntl.com@rob> In-Reply-To: <20060122222455.YFWL29891.aamta09-winn.ispmail.ntl.com@rob> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N In our environment we have a default catalog and then each bank can provide just the definitions for the keys they want to override. In order for this to work the bank name must be resolved at each request. I assume you are trying to do something similar. If you look in cocoon.xconf you will see a section that defines "source-factories". You will notice that file, resource, cocoon and context are defined there, among others. If you look at the classes referenced in those definitions you will see pretty much everything you need to know about how to implement your own "protocol" handler. My prefs protocol retrieves data from our preferences repository, which is where we store our catalogs. Basically, you need to implement a SourceFactory and a Source. Then in your Source have it return a systemid that varies depending on the request info (to insure caching works properly) and, of course, all the other methods should behave appropriately as well. Ralph Rob Gregory wrote: >Hey Ralph, > >It sounds like you have the perfect solution and understand what I am trying >to do (at runtime) can you expand by explaining the prefs:// is this similar >to cocoon:// etc? Can you provide a code sample so I can get a feel for what >you are suggesting? > >Look forward to your continued support. > >Thanks again for your time. >Rob > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org