Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 34840 invoked from network); 11 Apr 2005 13:55:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Apr 2005 13:55:01 -0000 Received: (qmail 88347 invoked by uid 500); 11 Apr 2005 13:54:51 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 88256 invoked by uid 500); 11 Apr 2005 13:54:51 -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 88200 invoked by uid 99); 11 Apr 2005 13:54:50 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from 10.21.96-84.rev.gaoland.net (HELO mail.anyware-tech.com) (84.96.21.10) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 11 Apr 2005 06:54:49 -0700 Received: from localhost (localhost [127.0.0.1]) by mail.anyware-tech.com (Postfix) with ESMTP id 86B9C348E2 for ; Mon, 11 Apr 2005 15:54:44 +0200 (CEST) Received: from mail.anyware-tech.com ([127.0.0.1]) by localhost (trinity [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22093-04 for ; Mon, 11 Apr 2005 15:54:41 +0200 (CEST) Received: from [10.0.0.27] (poukram.anyware [10.0.0.27]) by mail.anyware-tech.com (Postfix) with ESMTP id 34047348E1 for ; Mon, 11 Apr 2005 15:54:41 +0200 (CEST) Message-ID: <425A819F.3000407@apache.org> Date: Mon, 11 Apr 2005 15:54:39 +0200 From: Sylvain Wallez Organization: Anyware Technologies User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: [Ann/RFC] Virtual Sitemap Components References: <42599554.2080809@nada.kth.se> <425A7079.2000802@apache.org> <425A756E.7060709@reverycodes.com> In-Reply-To: <425A756E.7060709@reverycodes.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at anyware-tech.com X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Vadim Gritsenko wrote: > Sylvain Wallez wrote: > >> Daniel Fagerstrom wrote: >> >>> >>> >> src="org.apache.cocoon.transformation.VirtualPipelineTransformer"> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >> >> >> >> It seems weird to me to see sitemap statements in the >> section. But they're also used as any other >> component. Hmm... >> >> What about either: >> - leave them in but with special element names, e.g. >> that maps to the VirtualPipelineGenerator class > > > It can be > > > > > That's enough information to build it. > > >> - or separate them in a section just as we >> have today and ? > > > What would happen with default component? If we go this route, > > ... > > > > > > ... > > > > > What will be in place of "???", and how this would relate to the > default transformer in the map:components section? Good point. So let's go for in . >> I would favor the second solution, even if this doesn't seem to be >> absolutely necessary for the implementation. > > > I'd prefer first solution, which lacks the problem of default components. > > > >>> VPCs are not cacheable yet. Its probably not that hard to add >>> caching, but it requires that we extend the ProcessingPipeline >>> interface with some methods that are needed for VPCs. It also >>> requires that we find some syntax for declaring what pipeline type >>> that should be used for a specific VPC. >> > > Not sure that this is desired. We should have configurable caching, > with following levels of caching: > > * No Caching: Returns null key > * Caching: Returns pipeline key, validity > * Caching, with private cache: Same as above, plus caches output of > the pipeline locally (same as caching pipeline). I'm wondering if we need this level of choice. If the surrounding pipeline isn't caching, key and validity will never be computed. Also, if we want to specifically cache the output, we can use the caching-point pipeline in the caller's pipeline. So in the end, looks like we just need a caching pipeline. >> Why do we have to choose a particular pipeline type? Isn't this >> defined by the surrounding the call to the VPC? > > > No, that pipeline is not used within VPC. VPC as a component is part > of this external pipeline, but internally it has its own. Ok. Sylvain -- Sylvain Wallez Anyware Technologies http://apache.org/~sylvain http://anyware-tech.com Apache Software Foundation Member Research & Technology Director