Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 7667 invoked from network); 31 Aug 2004 14:46:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 31 Aug 2004 14:46:23 -0000 Received: (qmail 12627 invoked by uid 500); 31 Aug 2004 14:46:16 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 12582 invoked by uid 500); 31 Aug 2004 14:46:15 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 12560 invoked by uid 99); 31 Aug 2004 14:46:14 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [63.249.95.37] (HELO mail.cruzio.com) (63.249.95.37) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 31 Aug 2004 07:46:13 -0700 Received: from [192.168.0.104] (dsl3-63-249-85-35.cruzio.com [63.249.85.35]) by mail.cruzio.com with ESMTP id i7VEou36097284 for ; Tue, 31 Aug 2004 07:50:56 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: <1093947144.32172.2070.camel@ighp> References: <41334F2B.7080602@apache.org> <1093917637.32173.106.camel@ighp> <1093947144.32172.2070.camel@ighp> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <63A7639E-FB5C-11D8-9120-000393539234@pcextremist.com> Content-Transfer-Encoding: 7bit From: Miles Elam Subject: Re: [Proposal] Add pass-through capability to mounted pipelines Date: Tue, 31 Aug 2004 07:45:23 -0700 To: dev@cocoon.apache.org X-Mailer: Apple Mail (2.619) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Just to add noise to the discussion... ;-) This passthrough (or whatever it's ultimately called) could also be used to make Cocoon installation and first setup easier. For example, let's say you have your Cocoon installation ready to go on the filesystem. After configuring the servlet container, the next step is usually to edit the main sitemap. This can be daunting for new users (it was for me the first few times) as the default sitemap is not exactly a five-liner. But what if you split it off a la Forrest? In the main sitemap, you have all of the basic configurations and component definitions (including or excluding based on the block inclusion or exclusion in many cases as is the case now with compilation), all of the samples, tutorials, documentation, etc. However, you also have a "pass-through" sitemap mount that matches everything going to mysite.xmap (or whatever) with a bare, minimal sitemap. It would be this minimal sitemap that folks would start out with and add their matchers to and get familiar with the system. Adding this baby step keeps folks from getting turned away from excess complexity (or at least hiding it for a while), allows them to learn the basic skills, and when the time comes that they need to edit the main sitemap.xmap, they will already have a firm grounding in the basic building blocks of how Cocoon works. It also provides a means for people to have their own sitemap without having to make large edits when a new Cocoon build is made. The pipes vs. pipelines change comes to mind where I simply tried to copy my customized sitemap onto a new build, and (surprise) it failed. I ended up having to do a line by line comparison of the default and customized sitemaps to find the problem. Similar problems have cropped up as components have been added/removed/renamed over the years. If, on the other hand, my customizations were in its own file where I could know/assume that the base sitemap was correct (because I copied it directly from a build), debugging problems becomes a lot easier. Currently I have such a setup where the main, default sitemap is kept pretty much intact while my changes are simply mounted in a single line. The pass-through proposal makes it possible to do this in the general case however. WDYT? - Miles Elam