You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Helmut Tammen <HT...@htsystemloesungen.de> on 2004/01/13 09:44:10 UTC

[Flow-Woody]: XML Binding

Using Cocoon 2.1.3

I want to modify the flow example from the woody-block so that the 
document is not saved to disk but to the session. From there I want to 
get it via the readDOMsession transformer.

Any suggestions? Are my thoughts right or is there another way to do it? 
How can I put the XML-document into the session?

Original code from binding_example.js:
     form.showForm("form2-display-pipeline");
     form.save(document);
     saveDocument(document, makeTargetURI(documentURI));
     cocoon.sendPage("form2-success-pipeline");
I would like to use
     saveDocumentAsDOMToSessionAttribute(...)
     cocoon.sendPage("form2-success-pipeline");

My modifcation of sitemap.xmap
      <map:match pattern="form2-success-pipeline">
        <map:generate src="forms/dummy.xml"/>
        <map:transform type="readDOMsession">
          <map:parameter name="dom-name" value="document"/>
          <map:parameter name="trigger-element" value="root"/>
          <map:parameter name="position" value="in"/>
        </map:transform>
        <map:transform src="xsl/form2_fop.xsl"/>
        <map:serialize type="fo2pdf"/>
      </map:match>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org