In July 2006, the W3C released a new working draft of the XForms 1.1 specification. Aside from adding some interesting new wrinkles to XForms 1.0's capabilities, such as a version attribute for the model element (and some

    Requires Free Membership to View

interesting targeting capabilities for processors that are sensitive to such things), new data types for e-mail addresses and ID card numbers, subtle changes to deferred update behavior for actions and new submissions methods it's not a huge and sweeping set of changes. Just what you'd expect going from 1.0 to 1.1 in an XML specification, in fact.

But what this news and the new specification reminded me is that XForms really represents a big step forward from such forms handling capabilities as HTML supports. In fact, many die-hard HTML fanatics have been sufficiently convinced by XForms capabilities to upgrade from their old favorite to XHTML so as to be able to take advantage of XForms capabilities. In a recent blog entitled Why XForms Matter, Revisited (3/19/2006), Kurt Cagle puts it like this: "XForms bears about as much resembles to HTML forms as a Bengal tiger has to a ferret. If you go back far enough, you'll probably find that they share a common ancestor…but in many ways XForms is more like the harbinger of a new Web development architecture…" Strong words, from somebody with strong reasons for uttering them (I just also read that he's now launched a focused Web site called xforms.org as well).

The hoopla about XForms comes from its ability to permit clients to manage most of the interaction with users independently, without having to continuously shuttle a stream of requests and replies between the client host and a server somewhere else on the network all the time in the background. XForms permits XML data models (which establish the types of data that appear in a form), constraints (which establish integrity, dependency, existence and other checks on forms data), and bindings (which relate specific input values on a form to variables in a data model or in a program of some kind).

Among other experts, Cagle also believes that those who do understand the data models that stand behind XForms (and other declarative sorts of data environments such as spreadsheets) and that learning XForms helps improve data modeling and model realization skills as well. Though extensions to XForms are sometimes needed to make them do everything Web page designers need (and see preview release 0.6 of the Mozilla XForms extension for a more detailed idea of what this enables), by itself XForms offers a reasonably complete solution for those who need to interact with users and to acquire, validate and manage data from those users during such interactions.

Those interested in learning and understanding more about XForms will benefit from digging into Kurt Cagle's recently completed six-part series on Understanding XForms, available through a link on the W3C Web site. Those interested in exploring more XForms tools and technologies should zip on over to Cagle's XForms.org and take a look around.

About the author

Ed Tittel is a full-time writer and trainer whose interests include XML and development topics along with IT Certification and information security topics. E-mail Ed at etittel@techtarget.com with comments, questions or suggested topics or tools for review.


This was first published in August 2006

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.