Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 65234 invoked from network); 1 Jul 2004 09:17:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Jul 2004 09:17:16 -0000 Received: (qmail 42097 invoked by uid 500); 1 Jul 2004 09:16:46 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 41936 invoked by uid 500); 1 Jul 2004 09:16:45 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 41822 invoked by uid 99); 1 Jul 2004 09:16:43 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [66.111.4.26] (HELO out2.smtp.messagingengine.com) (66.111.4.26) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 01 Jul 2004 02:16:42 -0700 X-Sasl-enc: 1eNcxrscS7QwJynkkue3OQ 1088673359 Received: from [127.0.0.1] (unknown [213.48.13.39]) by www.fastmail.fm (Postfix) with ESMTP id 7A41AC0DDCB for ; Thu, 1 Jul 2004 05:15:59 -0400 (EDT) Message-ID: <40E3C656.3050706@upaya.co.uk> Date: Thu, 01 Jul 2004 09:07:50 +0100 From: Upayavira User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616) X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: cocoon and hibernate sessions References: <05fa01c45e55$589de370$0c01000a@jsc> <40E283EA.6020509@gmx.net> <40E2B0C6.1050106@upaya.co.uk> <40E328C0.9040207@gmx.net> In-Reply-To: <40E328C0.9040207@gmx.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Stephan Coboos wrote: > Upayavira wrote: > >>> >>> >>> >>> >>> >>> >>> >>> >> This will not work. >> >> Actions are used when building a pipeline, not when processing it. So >> the action will take place before the view is processed, not after. > > > > Oh, what a pitty. It's a little bit consfusing me why action is > executed before processing the pipeline, but OK it is so. I think of > process switch within the pipline? Actually, when understood, it makes complete sense. So, to explain: Any pipeline when built, goes generator->transformer...->serializer. And that is it. Anything else, such as matchers, selectors and actions, that influence the pipeline, are used when building the pipeline, not when using it. So imagine a process that goes: 1) Which generator? Which transformers? Which serialiser 2) Okay, I've worked out my pipeline, so: generator, go generate And the generator then starts up, passing SAX events down the pipeline until the serialiser has consumed all resulting events and something has been returned to the user. Thus, actions are used when _building_ pipelines, not when _executing_ them. Hope that makes sense. Upayavira --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org