cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Portier <>
Subject Re: Silly Questions NO1: what does woodybinding do?
Date Fri, 30 Apr 2004 06:57:07 GMT

lechael wrote:

>>the source/target appointment (where xml is loaded and saved) is not
>>part of the binding, the binding works on the DOM-tree, other parts of
>>the app need to load/save that from/to actual files.
> Then which "DOM-tree" it works on? the form definition's? or future data
> files?

it works on the DOMtree handed by loadDocument(documentURI).

have you checked the js- script I mentioned?

     var documentURI = cocoon.parameters["documentURI"];

     // parse the document to a DOM-tree
     var document = loadDocument(documentURI);

this means the documentURI is provided by the call from the sitemap:

   <map:match pattern="form_model_gui.flow">
     <map:call function="handleForm">

as you can see in the script the makeTargetURI function will save to the 
[originalDucmentURI]-result.xml version of the original.

Marc Portier                  
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at                          

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message