Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 49423 invoked from network); 8 Apr 2000 17:16:44 -0000 Received: from moutvdom00.kundenserver.de (195.20.224.149) by locus.apache.org with SMTP; 8 Apr 2000 17:16:44 -0000 Received: from [195.20.224.204] (helo=mrvdom00.schlund.de) by moutvdom00.kundenserver.de with esmtp (Exim 2.12 #2) id 12dyqg-0003o2-00 for cocoon-users@xml.apache.org; Sat, 8 Apr 2000 19:16:42 +0200 Received: from [62.96.170.142] (helo=wonko) by mrvdom00.schlund.de with smtp (Exim 2.12 #2) id 12dyqe-0000Rs-00 for cocoon-users@xml.apache.org; Sat, 8 Apr 2000 19:16:41 +0200 From: Edwin Glaser To: cocoon-users@xml.apache.org Subject: Re: cocoon performance Date: Sat, 8 Apr 2000 19:20:17 +0200 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain References: <20000405201516.68279.qmail@hotmail.com> <65febbda4d860ecfb23195335584a60038edd719@> <38EE79B2.F45B9BFA@apache.org> In-Reply-To: <38EE79B2.F45B9BFA@apache.org> MIME-Version: 1.0 Message-Id: <00040819222100.00405@wonko> Content-Transfer-Encoding: 8bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Hello, Stefano Mazzocchi wrote: >> Will it be possible, with Cocoon 2, to begin to send data to the client before >> "processing" (XSP, XSLT, XSL ...) is finished ? (with SAX, if I've understood) >in theory, yes. > in practice, you need an incremental XSLT and none are available, but > this is not something I can control :( Hmmm, it can be done with an ordinary XSLT processor. But porting will be hard until we get a standard for extention elements. If you put a producer into an extention element or an extention function, that returns a node-set, you can do it in one pass. If this node-set uses a lazy-evaluation strategy, you will be able to render the output, while the producer is still working. Arkin suggested to implement such a thing on top of the castor package. Your stylesheet may include templates like this one: select * from foo_table where id = At first, this template looks strange. But as soon as you get used to it, the combination of extention elements with the apply-templates builtin becomes a very powerful design pattern. I have no idea how to merge this kind of producers with the sitemap approach. But I think as soon as we find a solution, we will get the next generation of XML tools but one. -- Edwin Glaser -- edwin@pannenleiter.de