YOUR NEXT DISCOVERY/How-to & learningFollow your curiosity
Generated conceptual illustration of a translucent form panel connected by fine threads to amber beads in an indigo data tray.
generated illustration · Based on the cited explanation.

Online / Living resource

A form can keep its data behind the screen.

XForms

The XForms cookbook opens a useful question about interactive documents: where does a form’s information live while someone is editing it? Its model-and-control architecture gives that question a concrete answer.

A changed field can affect a rule elsewhere in a form. Tracing that relationship makes interface behavior easier to reason about.

SERENDIPITYA little unexpected
FamiliarWeird

XForms is a collaborative Wikibooks tutorial and cookbook about an XML-based forms technology. Its contents move from introductory architecture to worked examples. The reviewed revision also mentions testing with Firefox 2 and 3 add-ons. That dates part of its practical guidance; a reader needs to check an intended processor before attempting an old example.

The W3C XForms 1.1 Recommendation, dated 20 October 2009, explains a model that holds XML instance data separately from the visible controls. Bindings connect controls to data nodes. Its payment example changes which details matter when the payment method changes: card details become relevant and required for the card option. These relationships are expressed as model properties.

The same specification gives a useful detail about presentation. A select1 control expresses a single choice without requiring a particular radio-button appearance. Controls have associated labels. This describes the language’s design; it does not establish that any particular deployed form is accessible or works on a phone.

Try an original paper exercise: sketch a workshop booking with a contact field and a choice between an online meeting and a room visit. Write its stored values on a separate sheet. Add a room-number requirement for the room visit, then trace what must be reconsidered when the choice changes. Keeping those sheets distinct makes an invisible dependency inspectable. This is a conceptual exercise, not tested XForms code.

Now change only the wording of a visible label. Ask whether the stored value needs to change too. Then change the meaning of the choice itself and ask that question again. The comparison gives a concrete reason to keep the data’s meaning explicit when revising an interface.

The cookbook flags differences between nodeset and ref in its examples. Consult the chosen processor’s documentation and the relevant language version before copying syntax. This page supplies no browser-compatibility claim. The generated illustration is a metaphor for connected controls and stored data; its threads do not map an actual program.

Book context adapted from Wikibooks contributors · CC BY-SA 4.0 · Source credits · License and reuse terms

WikibooksXForms: reviewed revision 4389655W3CXForms 1.1 Recommendation, 20 October 2009: sections 2.1–2.3

Source excerpt credited above. Images carry their own reuse terms.