The presentation of this document has been augmented to identify changes from a previous version. Three kinds of changes are highlighted: new, added text, changed text, and deleted text.
This document is also available in these non-normative formats: single HTML file, diff-marked HTML, and Zip archive.
Copyright © 2005 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark and document use rules apply.
XForms is an XML application that represents the next generation of forms for the Web. By splitting traditional XHTML forms into three parts—XForms model, instance data, and user interface—it separates presentation from content, allows reuse, gives strong typing—reducing the number of round-trips to the server, as well as offering device independence and a reduced need for scripting.
XForms is not a free-standing document type, but is intended to be integrated into other markup languages, such as XHTML or SVG.
This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at http://www.w3.org/TR/.
1 Differences between XForms 1.0 and 1.1
1.1 Model and instance
1.2 New Datatypes
1.3 Submission
1.3.1 Submission: attributes
1.3.2 Submission: elements
1.3.3 Submission for Soap
1.4 Events
1.5 New Functions
1.5.1 Encoding and decoding functions
1.5.2 Control functions
1.6 Controls
1.7 Actions
1.7.1 Actions: insert and delete
1.7.2 Conditional and repeated actions
1.7.3 New attribute on dispatch action
1.7.4 Additions to actions
This list reflects the differences between the Rec version of XForms 1.0 and the last call version of XForms 1.1, and only feature a high-level view of the differences.
Many of the changes only effect minor details about the processing model (such as clarifications).
Most of the changes are additions and simplifications, though control of submission has greatly improved.
New version attribute: <model version="1.1">...
New resource attribute: <instance resource="...">
For e-mail adresses
For credit cards and other ID cards
<bind nodeset="q" required="true()" type="xsd:integer"/>
is now
<bind nodeset="q" required="true()" type="xforms:integer"/>
The first submission element is now the default, so if you only have one submission a submit control doesn't need to specify it.
To control submission more, the <submission>
element now has a number of new attributes and child elements.
Attributes:
resource: same as action
(see element)
mode (asynch, synch): asyncronous or synchronous submission. Asynchronous is default.
method="delete": supports http DELETE method.
verb: overrides the method attribute
serialize: whether data is to be sent with the submission
validate: whether to validate the data (for instance for save to file)
relevant: whether to prune non-relevant data
replace="text": accept text results, and replacing parts of instance
replace="text": accept text results, and replacing parts of instance
target: used with replace="text