cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ard Schrijvers" <a.schrijv...@hippo.nl>
Subject RE: How to return xml from a flowscript?
Date Thu, 05 Jan 2006 11:27:01 GMT
Think you should take a look at the streamgenerator, that should do the job

AS


> 
> 
> 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.
> 
> I have the following flowscript:
> function cleanWordHtml() {
> 
> var base = Packages.java.lang.String(cocoon.parameters["base"]);
> var page = Packages.java.lang.String(cocoon.parameters["page"]);
> var output = new Packages.java.io.ByteArrayOutputStream();
> 
> cocoon.processPipelineTo("filesystem.cleanwhtm/"+base+"/"+page
> ,null,output);
> 
> var cleanxml = output.toString();
> 
> cocoon.sendPage("shapecms_upload.diskutera", {cleanxml: cleanxml});
> }
> 
> 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.
> 
> What I *would like* to do, is to send XML in the parameter, 
> instead of a string.
> Is this possible? Does anyone have a solution for me?
> 
> Best regards
> Hans
> 
> ---------------------------------------------------------------------
> 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


Mime
View raw message