cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Helmut Tammen <HTam...@htsystemloesungen.de>
Subject [Flow-Woody]: XML Binding
Date Tue, 13 Jan 2004 08:44:10 GMT
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


Mime
View raw message