A new event, such as "xforms-submit-serialized" or "xforms-submit-ready", could be dispatched just before effectively performing the submission.
The context info for this event would be:
resource-uri (string)
request-headers (node-sequence)
request-body (object (string or node-sequence))
If an action had been defined to handle this event, the submission execution would then stop after serialization. This action could, by itself, explicitly dispatch "xforms-submit-done" or "xforms-submit-error".
This new event would allow any computation for debugging, echoing or response simulation.
--Alain
ACTION-2320: Suggest a method of specifying a response for an echo
Assigned to: Alain Couthures