Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 88973 invoked from network); 25 Feb 2004 19:40:26 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 25 Feb 2004 19:40:26 -0000 Received: (qmail 96552 invoked by uid 500); 25 Feb 2004 19:40:08 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 96537 invoked by uid 500); 25 Feb 2004 19:40:08 -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 96523 invoked from network); 25 Feb 2004 19:40:07 -0000 Received: from unknown (HELO host.leverageweb.com) (64.91.254.192) by daedalus.apache.org with SMTP; 25 Feb 2004 19:40:07 -0000 Received: from va-leesburg-cmts5c-90.chvlva.adelphia.net ([67.21.159.90] helo=leverageweb.com) by host.leverageweb.com with esmtp (Exim 4.24) id 1Aw5AU-00074g-1L for users@cocoon.apache.org; Wed, 25 Feb 2004 14:58:06 -0500 Message-ID: <403CFB1B.9070105@leverageweb.com> Date: Wed, 25 Feb 2004 14:44:27 -0500 From: Geoff Howard User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: ESQL update and select statements in the same map:match problem References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.leverageweb.com X-AntiAbuse: Original Domain - cocoon.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - leverageweb.com X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N It's not a bug -- and I wouldn't recommend using a workaround like the one below (which would probably work). Don't try to modify the data model while it's being turned into sax (the job of the generator). Other non-MVC friendly frameworks force this but Cocoon almost forces you not to because of all the problems it can cause in real-world applications. In your case, either use flow to call logic which modifies your database (beyond scope of my response) or use an action. Actions and flow are both guaranteed to execute before the pipeline is assembled and are designed to be the place for data manipulation (with the exception of the side-effect transformers like the SQLTransformer, also out of scope). If you already have an xsp which does the job, turn it into an xsp action and you're done. Geoff Christopher Painter-Wakefield wrote: > > >I don't know anything about the internal workings of the map:aggregate, but >I would guess it is not waiting for the first part to complete before >opening a connection for the second part. This would make sense, for >performance reasons, and there is no particular reason for cocoon to expect >the parts to be dependent on each other. So I don't think it is >necessarily a bug, nor a caching mechanism, just that map:aggregate doesn't >imply sequential processing. > >Just curious, should the map:aggregate have an "element" attribute >specifying the root element for the combined output? Also, what does >"strip-root='yes'" do? I couldn't find it in the documentation >(http://cocoon.apache.org/2.1/userdocs/concepts/sitemap.html#Aggregating). > >You could probably make things sequential (and still achieve aggregation) >by using either a cinclude transformer, or even more simply by using an >XSLT transform step with the document() function, e.g., >... > > > > > > >... > >with a sitemap like > > > >or some such. > >-Christopher > >hi people > >i have the folow code : > > > strip-root="yes"/> > > > >where i call 2 .xsp > >1. update_point.xsp >where i update a record in my database > >2. get_point.xsp >where i get the updated record > >the problem is that this aggregation update the database record (i have >check the content) but generate output (get_point) with the before update >values > >is this a caching mechanism case, is it possible to bypass this problem or >it's just a bug? > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org