Hi Grzegorz -
Thanks for your help regarding talking to a pipeline in another block. I've
got a supplementary question which I hope you can help with.
How do I pass a string of XML to the pipeline to have it transformed?
Basically I receive a string of XML in flowscript (this XML is read from the
input stream, sent by an xforms engine) and I'd like to pass this string to
the pipeline to perform some XSLT transformation, and have the result of the
transformation passed back to me within flowscript.
To achieve this previously I had done:
var output = pipelineUtil.processToDOM("transformForExist", viewData);
with viewData being the data - this is then read by:
<map:generate src="module:flow-attr:stringOutput" />
So now I am using the source resolver my flowscript is as follows:
var map = new java.util.HashMap();
map.put("stringOutput", submission);
var source =
sourceResolver.resolveURI("servlet:rmm-search:/transformForSolr", null,
map);
var sourceOutput = SourceUtil.toDOM(source);
But I can't find a way to read the parameter within the transformForSolr
pipeline. I tried using the request generator to read the parameters, but
this didn't seem to work.
Sorry, I'm just a bit confused - am I doing the right thing?
Many thanks,
Anil.
--
View this message in context:
http://www.nabble.com/processToDom-talking-to-another-block-tp15163995p15183436.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]