Name

submission

Synopsis

The submission element defines the parameters for serializing and submitting instance data. An XForms Model can contain any number of submission elements. The content model for this element is any XForms Action element, which is convenient when dealing with events that target this element.

Most of the action takes place in the attributes of this element.

ref and bind

These attributes are functionally equivalent to binding attributes (see Chapter 5), and are used to select a particular node that is selected, along with all its children. (Note that the model attribute is unnecessary, since the enclosing XForms Model is always the one under consideration.) If neither of these attributes are present, all of the instance data, as defined by the first <instance> element, is selected for submission.

action (required)

This attribute holds a URI to which the submission will be directed.

method

This required attribute provides additional information that, combined with the URI scheme in the action attribute, determines how the submission process will proceed. Possible values are “get”, “put”, “post”, “form-data-post”, “urlencoded-post”, or any QName that includes a prefix. QName values are considered extensions, as discussed in Chapter 11.

replace

This attribute describes what should happen with the response document (if any) that is returned from the submission action. Possible values are “all”, “instance”, “none”, or any QName that includes a prefix. QName ...

Get XForms Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.