Return-Path: Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 95164 invoked by uid 500); 10 Jul 2003 10:19: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 95149 invoked from network); 10 Jul 2003 10:19:14 -0000 Received: from adsl203-150-253.mclink.it (HELO linux.local) (213.203.150.253) by daedalus.apache.org with SMTP; 10 Jul 2003 10:19:14 -0000 Received: from apache.org (localhost [127.0.0.1]) by linux.local (Postfix) with ESMTP id 4E9AB84D36 for ; Thu, 10 Jul 2003 12:19:27 +0200 (CEST) Message-ID: <3F0D3DAE.9040205@apache.org> Date: Thu, 10 Jul 2003 12:19:26 +0200 From: Gianugo Rabellino User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: DirectoryGenerator source-oriented refactoring References: <3F0D2CA9.2020005@apache.org> <3F0D391E.4070202@anyware-tech.com> In-Reply-To: <3F0D391E.4070202@anyware-tech.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Sylvain Wallez wrote: >> I just added to scratchpad a refactored implementation of >> DirectoryGenerator (TraversableGenerator) that doesn't work with just >> files but with any TraversableSource. Together with it, a refactoring >> was done on XPathDirectory, which is now XPathTraversable, so that >> even XPath queries can be done on any TraversableSource (while we were >> at it, we added namespace support, missing on the previous >> implementation). > > Damn, competing implementations : I've had this same thing on my HD for > several weeks now as part of the new version of the CVSSource. Shame on > me, I should have committed this for a long time. "release early, > release often". Oh well... silly me for not asking. :-) > My version is cacheable, but doesn't support XPath. I'll look at yours > to see how to merge them. Ours is cacheable too, actually it was very little more than s/File/Source on the cacheable DirectoryGenerator, so a more clever implementation would be most welcome. :-) Also, the XPath stuff is on an different class (XPathTraversableGenerator), which extends TraversableGenerator, so some care should be taken in merging the two. >> Also, since we're not talking about directory and files anymore, I >> used the more generic terms of collection and resource, changing the >> namespace too to "http://apache.org/cocoon/collection/1.0". I don't >> remember if a vote was required for new namespace additions, but I'd >> like to hear at least your opinion on that. :-) > > I think we should keep the current namespace, which describes a > hierarchy, and is not really tied to the fact that is a real filesystem > or something else. But we should keep the current DirectoryGenerator > (eventually deprecated) since users may have extended it (we did it for > an application to add extra attributes and filtering rules). Makes sense. Ciao, -- Gianugo Rabellino Pro-netics s.r.l. - http://www.pro-netics.com Orixo, the XML business alliance - http://www.orixo.com (Now blogging at: http://blogs.cocoondev.org/gianugo/)