User Guide

Table Of Contents
ColdFusion XML format 715
<cfinput type="text" name="email" label="E-mail" validate="email"
maxlength="35">
<cfselect name="satisfaction" style="width:120px" multiple="false"
label="Satisfaction">
<option selected>very satisfied</option>
<option>somewhat satisfied</option>
<option>somewhat dissatisfied</option>
<option>very dissatisfied</option>
<option>no opinion</option>
</cfselect>
</cfformgroup>
</cfformgroup>
<cfformitem name="html1" type="html">
<p><b>We value your input</b>.<br>
<em>Please tell us a little about yourself and your thoughts.</em></p>
</cfformitem>
<cftextarea name="thoughts" label="Additional Comments" rows="5"
cols="66">We really want to hear from you!</cftextarea>
<cfformgroup type="horizontal">
<cfinput type="submit" name="submit" style="width:80" value="Tell Us">
<cfinput type="reset" name="reset" style="width:80" value="Clear Fields">
</cfformgroup>
</cfform>
ColdFusion XML format
This section describes the XML generated from a ColdFusion cfform tag and its children. It
provides a building block toward creating your own XSL skins.
XML namespace use
The XML that ColdFusion generates for forms uses elements and attributes in several XML
namespaces. Namespaces are named collections of names that help ensure that XML names are
unique. They often correspond to a web standard, a specific document type definition (DTD), or
a schema. In XML, the namespace name and a colon (:) precede the name of the tag that is
defined in that namespace; for example
xf:model for the XForms namespace model tag.
ColdFusion uses several standard XML namespaces defined by the World Wid Web Consortium
(W3C). These namespaces correspond to specifications for standard XML dialects such as
XHTML, XForms and XML Events. ColdFusion XML forms also use a custom namespace for
skinnable forms XML extensions. The following table lists the namespaces in the XML that
ColdFusion generates.
Prefix URL Used for
html http://www.w3.org/1999/xhtml Form tag information, including action, height, width,
and name. XHTML compliant.
xf http://www.w3.org/2002/xforms XForms model (including initial field values) and
XForms elements that correspond to cfform tags.