Joerg Heinicke wrote
On 12.05.2004 12:16, Christian Rosenberger wrote:
Ok, will give it a try.
One problem remains (maybe just as I am new to the whole flowscript/woody framework).
How can I transfer my XML document from and to the flowscript?
You don't pass XML to and get it from flowscript. The flowscript must call a pipeline.
Yes, I pass the URL to the flowscript. And the flowscript calls a pipeline at the end.
My sitemap would like this:
Generator => call flowscript => user doing updates => flowscript calls transformer
That can not work. And I already got the feeling that something is strange from your first mail. Maybe you can more explicitely what you try to do - not how.
From what I get: You have data in the Java backend, you want to present this as form, let the user make changes and postprocess the result of the user changes in what way ever. Is this correct?
Yes, this is correct.
I get XML from my backend java class. This xml data I want to use to present a form with prefilled values. The user make changes and the changed data should be inserted in a XML file which is sent by another java class back to the backend. (same format, but other values).
To get data from backend I wrote a generator and to send it back to backend I wrote a transformer.
My flowscript is the same as in the xml binding sample:
function form2xml(form) {
var documentURI = cocoon.parameters["documentURI"];
var document = loadDocument(documentURI);
form.load(document);
form.showForm("form2-display-pipeline");
form.save(document);
saveDocument(document, makeTargetURI("tempxml/test.xml"));
cocoon.sendPage("form2-success-pipeline");
}The documentURIs I tried were:
1. <map:parameter name="documentURI" value="cocoon:/getData?ID={request-param:ID}"/>
2. <map:parameter name="documentURI" value="http://localhost/info.xml"/>-->
The first one calls a pipeline with my java backend generator. The second one simply tries to get a plain xml file on a webserver.
Hope this makes it clearer.
Regards, Christian
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
