- Introduction
- Key Goals of XForms
- Relationship of XForms to HTML Standard
- XForms Implementations
Relationship of XForms to HTML Standard
The XForms model is the non-visible definition of an XML form as specified by XForms. The XForms model defines the individual model items and constraints and other runtime aspects of XForms.
XForms is constructed to allow developers to have a more generic framework to make forms. A model item is an abstract unit of data-collection within the XForms model, which consists of a XML Schema datatype and possibly other form-specific constraints on a single piece of collected data.
The following table presents a list of form controls that are part of the XForms standard and that are new to forms. These user interface components deal with interactive data entry and display.
XForms UI Component |
XHTML Analog |
Description |
<button> |
<button> |
Activation of form events |
<input> |
<input type="text"> |
Entry of small amounts of text |
<output> |
N/A |
Inline display of any instance data |
<range> |
N/A |
Range selection of a value, providing a continuous selection of a value within two extremes |
<secret> |
<input type="password"> |
Entry of sensitive information |
<selectBoolean> |
<input type="checkbox"> |
Selection of a true/false value |
<selectMany> |
<select multiple="multiple"> |
Selection of many options |
<selectOne> |
<select> or <input type="radio"> |
Selection of one option among several |
<submit> |
<input type="submit"> |
Submission of form data |
<textarea> |
<textarea> |
Entry of large amounts of text |
<upload> |
<input type="file"> |
Upload of file or device data |
The interesting form UI component of note is the <upload> element. This allows developers to upload various device data associated to specific media; for example, scanners, digital cameras, microphones, video, etc.