31-08-2017, 03:55 PM
XForms is an XML format used to collect web form entries. XForms was designed to be the next generation of HTML / XHTML forms, but it is generic enough so that it can also be used independently or with display languages other than XHTML to describe a user interface and a set of common manipulation tasks data.
XForms 1.0 (third edition) was released on October 29, 2007. The original XForms specification became an official W3C recommendation on October 14, 2003, while XForms 1.1, which introduced a number of improvements, reached the same status on October 20, 2009.
Unlike the original web forms (originally defined in HTML), the creators of XForms have used a model-view-controller approach (MVC). The model consists of one or more XForms models that describe form data, constraints on such data, and presentations. The view describes which controls appear on the form, how they are grouped, and what data is linked. CSS can be used to describe the appearance of a form.
An XForms document can be as simple as a web form (just by specifying the display element in the model section and placing the controls in the body), but XForms includes many advanced features. For example, you can request and use new data to update the form while it is running, as with XMLHttpRequest / AJAX, except without scripting. The form author can validate user data with XML Schema data types, require certain data, disable input controls, or change form sections depending on circumstances, impose particular relationships between data, introduce variable-length variable-length arrays, calculated derived from form data, pre-fill entries that use an XML document, respond to actions in real time (instead of presentation time) and modify the style of each control depending on the device in which they are displayed. There is often no need for any script with languages like JavaScript. However, XForms includes a model of events and actions to implement behaviors in a more complex way. Actions and event handling are specified using the XForms XML dialect instead of the most common scripting languages such as JavaScript.
Like web forms, XForms can use several non-XML (multipart / form-data, application / x-www-form-urlencoded) presentation protocols, but a new feature is that XForms can send data to a server in XML format . XML documents can also be used to fill data in the form. Because XML is a standard, there are many tools that can analyze and modify data after the presentation. Similar tools exist for legacy forms. XForms is itself an XML dialect, and therefore can be created and created from other XML documents using XSLT. Using transformations, XForms can be automatically created from XML schemas, and XForms can be converted to XHTML forms.
XForms 1.0 (third edition) was released on October 29, 2007. The original XForms specification became an official W3C recommendation on October 14, 2003, while XForms 1.1, which introduced a number of improvements, reached the same status on October 20, 2009.
Unlike the original web forms (originally defined in HTML), the creators of XForms have used a model-view-controller approach (MVC). The model consists of one or more XForms models that describe form data, constraints on such data, and presentations. The view describes which controls appear on the form, how they are grouped, and what data is linked. CSS can be used to describe the appearance of a form.
An XForms document can be as simple as a web form (just by specifying the display element in the model section and placing the controls in the body), but XForms includes many advanced features. For example, you can request and use new data to update the form while it is running, as with XMLHttpRequest / AJAX, except without scripting. The form author can validate user data with XML Schema data types, require certain data, disable input controls, or change form sections depending on circumstances, impose particular relationships between data, introduce variable-length variable-length arrays, calculated derived from form data, pre-fill entries that use an XML document, respond to actions in real time (instead of presentation time) and modify the style of each control depending on the device in which they are displayed. There is often no need for any script with languages like JavaScript. However, XForms includes a model of events and actions to implement behaviors in a more complex way. Actions and event handling are specified using the XForms XML dialect instead of the most common scripting languages such as JavaScript.
Like web forms, XForms can use several non-XML (multipart / form-data, application / x-www-form-urlencoded) presentation protocols, but a new feature is that XForms can send data to a server in XML format . XML documents can also be used to fill data in the form. Because XML is a standard, there are many tools that can analyze and modify data after the presentation. Similar tools exist for legacy forms. XForms is itself an XML dialect, and therefore can be created and created from other XML documents using XSLT. Using transformations, XForms can be automatically created from XML schemas, and XForms can be converted to XHTML forms.