Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 72498 invoked from network); 24 Nov 2003 08:25:58 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 24 Nov 2003 08:25:58 -0000 Received: (qmail 6058 invoked by uid 500); 24 Nov 2003 08:25:27 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 5788 invoked by uid 500); 24 Nov 2003 08:25:25 -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 5775 invoked from network); 24 Nov 2003 08:25:25 -0000 Received: from unknown (HELO ivmail1.fcc.es) (195.235.176.9) by daedalus.apache.org with SMTP; 24 Nov 2003 08:25:25 -0000 Received: from fcccorreo1.sg.gr.fcc.es ([10.1.1.190]) by ivmail1 with InterScan Messaging Security Suite; Mon, 24 Nov 2003 09:26:38 +0100 Received: from blcorreo1.sg.gr.fcc.es ([10.17.18.232]) by fcccorreo1.sg.gr.fcc.es with Microsoft SMTPSVC(5.0.2195.6713); Mon, 24 Nov 2003 09:25:27 +0100 Subject: RE: how to use output of transform in sitemap Date: Mon, 24 Nov 2003 09:25:26 +0100 Message-ID: X-MS-Has-Attach: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MS-TNEF-Correlator: Thread-Topic: how to use output of transform in sitemap Thread-Index: AcOvt8CcSi0nQQ0OTby9TvNmFfrRsgCrFdDA content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 From: "Carmona Perez, David" To: X-OriginalArrivalTime: 24 Nov 2003 08:25:27.0015 (UTC) FILETIME=[838EBF70:01C3B264] 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 XSPAction or ServerPagesAction? -------- David -----Mensaje original----- De: Lars Huttar [mailto:lars_huttar@sil.org] Enviado el: jueves, 20 de noviembre de 2003 23:34 Para: users@cocoon.apache.org Asunto: RE: how to use output of transform in sitemap Hi all, To answer my own question, a good way to get output of a pipeline for use in the sitemap is to use the XSPAction action. This lets you run an XSP page created by a pipeline; the XSP code can then use , and so on to send results out to the sitemap. This also allows me to put session:set-attribute instructions in the XSP code, as desired; and I can do the redirects in the sitemap, conditional on success or failure as determined by the XSP code. Regards, Lars > -----Original Message----- > From: Lars Huttar [mailto:lars_huttar@sil.org] > Sent: Wednesday, November 19, 2003 10:00 PM > > Hi all, > I'm having a tough time figuring out how to use the output > of a transformation in the sitemap. > The task is fairly simple user authentication. Pseudocode for > the desired operation: > > 1) check the id and password request params against the user > database (users.xml) > > > > The stylesheet checks the id and password params against users.xml > for a match. It outputs if > successful; > otherwise. > > 2) If step 1 was successful, create a session and store the valid > of userid in it; then redirect to the "menu" pipeline. > Otherwise, redirect to the "login?login-failed=3Dtrue" pipeline, > which will present an error message and a login form. > > PROBLEM: how to get the result from step 1 into a form that can > be used by the sitemap for a conditional to control step 2? --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org