Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 46213 invoked by uid 500); 10 Apr 2002 10:21:12 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 46199 invoked from network); 10 Apr 2002 10:21:12 -0000 From: "Carsten Ziegeler" To: Subject: RE: Problem with ParameterSelector Date: Wed, 10 Apr 2002 12:23:36 +0200 Message-ID: MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <000e01c1e078$50927f40$85966586@Pachelbel> X-Mimeole: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-MIMETrack: Itemize by SMTP Server on PBSN1/Systeme und Netzwerke(Release 5.0.8 |June 18, 2001) at 10.04.2002 12:21:24, Serialize by Router on PBSN1/Systeme und Netzwerke(Release 5.0.8 |June 18, 2001) at 10.04.2002 12:21:25, Serialize complete at 10.04.2002 12:21:25 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Volker Schneider wrote: > > Do you think it is possible to fix this problem in a later > release, because > I think using an action-set is a comfortable way to write application for > better maintenance. > Hi Volker, I just checked the behaviour of the action-set (compiled and interpreted version) and here it works perfectly. Here is what I did: - I wrote three actions named T1, T2, T3 - T1 returns "A" for key "1" - T2 returns "B" for key "2" - T3 returns "C" for key "3" The action-set looks like this: And the pipeline: Now, if I request "test", only the t1 action is called, putting "1"/"A" into the Map. As the selector tests for "2", no map:when matches. Requesting "test?cocoon-action=add" invokes actions t1 and t2, putting "1"/"A" and "2"/"B" into the Map. The selector tests for "2" and the value is "B", so the file generator reads "test2.xml" And so on... So everything as it should be HTH Carsten --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: