Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 47851 invoked from network); 24 Dec 2003 16:28:36 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 24 Dec 2003 16:28:36 -0000 Received: (qmail 15944 invoked by uid 500); 24 Dec 2003 16:28:27 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 15875 invoked by uid 500); 24 Dec 2003 16:28:26 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 15813 invoked from network); 24 Dec 2003 16:28:25 -0000 Received: from unknown (HELO gate1.stjude.org) (192.55.208.11) by daedalus.apache.org with SMTP; 24 Dec 2003 16:28:25 -0000 Received: by gate1.stjude.org; (8.9.3/1.3/10May95) id KAA1047448; Wed, 24 Dec 2003 10:28:28 -0600 (CST) Received: from somewhere by smtpxd Received: from somewhere by smtpxd Message-ID: <1E0CC447E59C974CA5C7160D2A2854EC097D54@SJMEMXMB04.stjude.sjcrh.local> From: "Hunsberger, Peter" To: Date: Wed, 24 Dec 2003 10:28:26 -0600 Subject: Make continuation id available to all XSLTs MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 X-MS-Has-Attach: X-MS-TNEF-Correlator: X-OriginalArrivalTime: 24 Dec 2003 16:28:27.0006 (UTC) FILETIME=[F55EF1E0:01C3CA3A] X-SEF-723560E2-3392-41F8-A983-A3F5486E94A: 1 content-class: urn:content-classes:message Thread-Topic: Make continuation id available to all XSLTs Thread-Index: AcPKOvVFJx2ot36kTpuFAs8JvAVe1g== 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 We've finally got around to playing with 2.1 and we're in the process of converting some of our application to use flow (yeah!). We've got a huge locally developed forms infrastructure that I've talked about here in the past. Basically, it's not going to migrate to any other forms infrastructure (aka cForms) anytime soon. However flow migration would be good, even necessary for us but I've run into two things that seem to be holding us back in using it. I'll post the 2nd issue separately. In order to generically adapt any pipeline to use flow you need a continuation id for any form action (POST) you might create. Strangely, it seems this is not readily available from the TraxTransformer? We ended up wrapping the TraxTransformer with our own and extending a couple of methods, the code being stolen from the JPathTransformer private WebContinuation m_kont; public void setup(SourceResolver resolver, Map objectModel, String src, Parameters parameters) throws ProcessingException, SAXException, IOException { super.setup(resolver, objectModel, src, parameters); m_kont =3D FlowHelper.getWebContinuation( objectModel ); } protected Map getLogicSheetParameters() { Map params =3D super.getLogicSheetParameters(); if ( m_kont !=3D null ) { String id =3D m_kont.getContinuation(0).getId(); if ( id !=3D null ) params.put( "cocoon-continuation-id", id ); } return params; } =20 It seems however, that the availability of the continuation id should be part of the base TraxTransformer since it would be generally useful? Peter Hunsberger