User Guide

Table Of Contents
716 Chapter 30: Creating Skinnable XML Forms
XML structure
For each CFML tag, ColdFusion MX converts attributes and element values to XML in the
XForms
xf:model element, or in individual control elements, such as the XForms xf:input,
xf:secret, or xf:group elements.
ColdFusion MX generates XForms XML in the following format. The numbers on each line
indicate the level of nesting of the tags.
1 form tag
2 XForms model element
3 XForms instance element
4 cf:data element
3 XForms submission element
3 XForms bind element
3 XForms bind element
3.
3.
3.
2 (end of model element)
2 XForms or ColdFusion extension control element
2 XForms or ColdFusion extension control element
.
.
.
1 (end of form)
The following sections describe the data model and the elements that make up the XForms
document.
Data model
The XForms data model specifies the data that the form submits. It includes information on each
displayed control that can submit data, including initial values and validation information. It does
not contain information about
cfformgroup or cfformitem tags. The data model consists of the
following elements and their children:
One xf:instance element
One xf:submission element
One xf:bind element for each form control that can submit data
ev http://www.w3.org/2001/xml-events System events. Used for the cfinput type="reset".
cf http://www.macromedia.com/2004/
cfform
All ColdFusion extensions, including passthrough of
attributes that do not correspond to XForms
elements or attributes.
Prefix URL Used for