Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 82613 invoked by uid 500); 24 May 2002 12:19:04 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 82601 invoked from network); 24 May 2002 12:19:02 -0000 Subject: RE: Multiple transformer-passes when using command-line Cocoon To: cocoon-dev@xml.apache.org X-Mailer: Lotus Notes Release 5.0.6a January 17, 2001 Message-ID: From: koen_pellegrims@inventivedesigners.com Date: Fri, 24 May 2002 14:17:49 +0200 X-MIMETrack: Serialize by Router on Domino01/Inventive Designers(Release 5.0.8 |June 18, 2001) at 05/24/2002 02:17:55 PM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Carsten is right. In Main.java the flow is organised as follows: 1. getContentType 2. getLinks (which uses this content-type as a parameter) 3. getFile (which uses the links as a parameter) which makes three passes in total. I'm not very familiar with the internals of this part of Cocoon, but maybe it is possible to 1. combine the two environments into one and get all the information at once 2. removing the content-type dependency from the links-environment K. Stephan Michels wrote: > > On Fri, 24 May 2002, Carsten Ziegeler wrote: > > > The commandline interface is currently very inefficient. Each document > > is even without caching, precompilation etc. at least build twice. > > The first time to get the content and the second time to get the > > mime-type of the document! > > Mime type? Do you not mean for links-view? > No, mime type is correct! For whatever reason the command line interface builds the document again to get the mime type! I don't know why, but it's the way it is now. If the crawling mechanism is used, then the document is processed three times, the third time for the links-view. Carsten Carsten Ziegeler Chief Architect Open Source Group, S&N AG ------------------------------------------------------------------ Cocoon Consulting, Training and Projects ------------------------------------------------------------------ mailto:cziegeler@s-und-n.de http://www.s-und-n.de http://ziegeler.bei.t-online.de --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org