Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 10340 invoked from network); 5 Jan 2006 11:27:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Jan 2006 11:27:20 -0000 Received: (qmail 32866 invoked by uid 500); 5 Jan 2006 11:27:14 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 32818 invoked by uid 500); 5 Jan 2006 11:27:13 -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 32807 invoked by uid 99); 5 Jan 2006 11:27:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jan 2006 03:27:13 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [213.133.33.30] (HELO mailrelay.is.nl) (213.133.33.30) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jan 2006 03:27:13 -0800 Received: from [213.133.51.241] (HELO hai01.hippo.local) by mailrelay.is.nl (CommuniGate Pro SMTP 4.3.5) with ESMTP id 9205657 for users@cocoon.apache.org; Thu, 05 Jan 2006 12:27:01 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: How to return xml from a flowscript? Date: Thu, 5 Jan 2006 12:27:01 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to return xml from a flowscript? Thread-Index: AcYR6VIDwx/JcKx7SNecfz0twHCBOwAAY/wg From: "Ard Schrijvers" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Think you should take a look at the streamgenerator, that should do the = job AS >=20 >=20 > I am quite new to flowscript, so this is a basic quesiton... > However, I have not been able to get any of the examples I found on > Google to work. >=20 > I have the following flowscript: > function cleanWordHtml() { >=20 > var base =3D Packages.java.lang.String(cocoon.parameters["base"]); > var page =3D Packages.java.lang.String(cocoon.parameters["page"]); > var output =3D new Packages.java.io.ByteArrayOutputStream(); >=20 > cocoon.processPipelineTo("filesystem.cleanwhtm/"+base+"/"+page > ,null,output); >=20 > var cleanxml =3D output.toString(); >=20 > cocoon.sendPage("shapecms_upload.diskutera", {cleanxml: cleanxml}); > } >=20 > It reads a Cocoon pipeline, which converts a Word HTML file to XML. > Then it sends this as a string in a parameter, to a pipeline that > processes it further. >=20 > What I *would like* to do, is to send XML in the parameter,=20 > instead of a string. > Is this possible? Does anyone have a solution for me? >=20 > Best regards > Hans >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org >=20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org