Skip to content
Hub Nexus

No author yetClaim it

Version 1Updated 3 min read

Support

Background

The XForms standard arose from the desire of many people to use the web for more than just linking documents. The original design of the world wide web standard introduced many innovative concepts including the URL, the HTML markup language and the HTTP protocol.

But innovation aside, elegant form processing was not one of the design goals of the initial HTML language. In fact, many of the advanced input fields were added to the HTML specification after it became popular.

One thing is clear: the introduction of clean MVC concepts were never part of the original HTML specification. Many attempts were made to introduce better controls into browsers and the HTML language, but most of these additions fell short for four reasons:

  • They were either browser or vendor specific solutions to a specific problem
  • They did not integrate mainstream developments in XML Schema, XPath and CSS
  • They did not take into account the need for clear separation-of-concerns
  • They did not meet the rigorous needs of application architects that understood the benefits of MVC architectures

As a result, many of these point-solutions have been discarded or have seen only niche use by some vendors.

Around 1997 the W3C started to address the concerns of these users and studied how web forms could be processed in a better way. They realized that validating data elements was a large concern and that re-inventing the validation tools already present in XML Schema would only duplicate efforts.

The first XForms draft specification was published on April 6, 2000. Since then it has been revised with the most recent version (1.1) appearing in March of 2006.

Today the XForms standard addresses several web forms development issues:

  • Model-View-Binding architecture
  • Advanced functionality
  • Precise specification for all browsers to integrate
  • Extensibility without resorting to JavaScript programming
  • Built-in assumptions about how form elements get updated

The Dependency Graph

Embedded within every XForms application is the ability to automatically recalculate values when a form element changes. If you have a complex form with calculation rules then this feature becomes critical for avoiding writing manual recalculation code. Most JavaScript forms libraries require the author to specify not only form rules, the order these rules must be executed. This slow and painful form-author-specified recalculation order is replaced in XForms by an automated method to determine the order of recalculation.

The way XForms applications do this is by doing automated determination of recalculation order based on optimal graph algorithms.

One of the most important papers about how XForms is designed come from the following paper:

The XForms Computation Engine: Rationale, Theory and Implementation Experience
html version

If you have a simple form with just a few elements and no calculation rules, HTML forms might be a good solution for you. If you have forms with rules such as sum and total calculations in a purchase order, then XForms might be the ideal fit for your web form.

For the current working draft of the XForms specification you can go to the w3 web site:

W3C Candidate Recommendation 29 November 2007

Where this page came from

This page was imported from Wikibooks. From “XForms” on Wikibooks, by its contributors, under CC BY-SA 4.0. Changed here: set as a page; navigation and edit links left out; each image under its own licence, credited in its caption.

Nobody has written it yet — it is the source material at a new address, which is why search engines are asked to skip it and why no one earns from it. It is up for grabs: take it on, and it is yours to rewrite and to earn from.

Get each new page of

XForms

Following means one email when a page is added, nothing when a page changes.

Following means one email when a page is added, nothing when a page changes.

Comments

Spinner Logo

Next in XForms

CC BY-SA 4.0
- **Declarative** - XForms is considered a [declarative]( system in that it allows users to declare **what** they want the forms to do, not **how** to do it. Movement away from highly complex and primitive procedural JavaScript to advanced declarative styles is the principal way that non-programmers
CC BY-SA 4.0
There are several ways to get started using XForms. But we must first understand that running XForms within a web browser has several security-related issues that prevent software from saving to your local hard drive. There are several workarounds for this. There are several XForms systems that can
CC BY-SA 4.0
Common options are Commercial (with link), Apache 2.0, LGPL, GPL or other. The column should always provide a URL to the exact license. ### Cost Per 10 or 100 or 1,000 or 10,000 Users What is the typical estimated costs for this product for between 10 and 10,000 users. Assume 10 medium-complexity fo
CC BY-SA 4.0
You should be able to just copy and paste the text into a program such as Notepad and save it to a file such as hello.htm. This will tell you if you have the [Firefox]( or other browser extension installed correctly. ## Screen Image (Note that this is only a .jpg and NOT an actual form!) ## Link to
CC BY-SA 4.0
ref="inp1"> Ephemeral message: level="ephemeral" ev:event="DOMFocusIn">This is an ephemeral message. Don't worry, I go away after a few seconds. Press enter in the input field to get a modeless message: ref="inp2"> Modeless message input: level="modeless" model="myModel" ref="/data/MyMessage" ev:eve
CC BY-SA 4.0
Most people that have studied [MVC]( architecture agree on two aspects: The Model and the View. The model is where you store your data or your business objects. The View is what the user sees. But many variations of MVC have very different implementations of a controller.