The previous problem that I was having with the form data not getting
to the exist database has been solved for the meantime by running the
server on an XP machine instead of a Vista one.
The form now works exactly as I posted it...
My one remaining problem is (I think) just one of using the correct
processor from within XForms.
At the moment the submission is done using:
<xforms:submission id="save-submission"
ref="instance('questionnaires-instance')"
action="/exist/rest/db/orbeon/my-bookcast/books.xml" method="put"
replace="none" >
<xforms:message ev:event="xforms-submit-error" level="modal">
An error occurred while saving!
</xforms:message>
</xforms:submission>
This replaces the entry in the database using REST (I think).
The equivalent calling the XForms submission processor is (I think):
Replacing the data is not what I need to do though, I need to add nodes
I have looked through the documentation that I can find on how to do
this, and there's an example in the second style.
The documentation seems to say that each of the examples given can be
done either directly from the XForms, or by calling the XForms
submission processor.
The documentation seems to say that I will also need to set up the datasource:
<!-- For instance, to connect to an embedded eXist, use: -->
<datasource>
<driver-class-name>org.exist.xmldb.DatabaseImpl</driver-class-name>
<uri>xmldb:exist:///</uri>
<username>admin</username>
<password>admin</password>
</datasource>
I've tried to find some documentation that explains how & where in the
structure of the XForms document to do the above two things, but I
can't find it anywhere.