Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 65400 invoked from network); 16 Jan 2007 18:44:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jan 2007 18:44:30 -0000 Received: (qmail 30205 invoked by uid 500); 16 Jan 2007 18:44:30 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 30135 invoked by uid 500); 16 Jan 2007 18:44:29 -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 List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 30124 invoked by uid 99); 16 Jan 2007 18:44:29 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jan 2007 10:44:29 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [209.226.175.34] (HELO tomts13-srv.bellnexxia.net) (209.226.175.34) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jan 2007 10:44:20 -0800 Received: from [192.168.0.4] ([70.49.1.114]) by tomts13-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070116184358.HKSC1773.tomts13-srv.bellnexxia.net@[192.168.0.4]> for ; Tue, 16 Jan 2007 13:43:58 -0500 Message-ID: <45AD1CED.10400@hhpl.on.ca> Date: Tue, 16 Jan 2007 13:43:57 -0500 From: Walter Lewis User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Exiting flowscript by sending XML to a pipeline References: <45ABC80B.7070009@blue-elephant-systems.com> <45ABCA75.1030508@hippo.nl> <45AC966A.8050703@hippo.nl> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org My thanks to Jason for the keys to the regular expression kingdom, or at least that part solvable by type conversion. :) Now that the data is being manipulated in flowscript to my satisfaction (or, at least, well enough for the moment), on to the next question: How to exit flowscript and pass the output into another (or containing) pipeline expecting XML. I have a public pipeline that includes this match: with an internal pipeline for the flowscript: the flowscript is defined here: search.js main() ends with cocoon.sendPage("style/QueryValues", { "q" : q, "fullQuery" : fullQuery, [and a number of other values in the same pattern] } The whole object of the flowscript is to manipulate the q value into the fullQuery value using javascript/rhino before passing it into a url that I want to in the results pipeline. Those of you who have followed me to this point will probably not be surprised that what is returned to screen is the QueryValues output, without the further processing in the "results" pipeline. If I *don't serialize it within the QueryValues pipeline I have a "No pipeline matched request" error. The examples seem to assume that the flowscript sendPage is going directly back to the user as HTML (obviously the key use case). I'm missing the examples where it isn't. I see that Rajesh Aravindakshan posed a similar question in Feb 2005, but I couldn't pull up a thread where the answer is resolved. Walter --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org