User Guide

Table Of Contents
ColdFusion XML format 721
ColdFusion converts cfformitem tags with text and html type attributes to XForms output
elements with the tag body in a <![CDATA[ section. It converts all other
cfformitem tags to
XForms
group elements, and sets each elements appearance attribute to the cfformitem tag’s
type attribute. The XSLT must process these elements to produce meaningful output. For
example, the ColdFusion default skin transform displays the
xf:output text blocks and processes
the
xf:group appearance="hrule" element, but it ignores all other xf:group elements.
General control element structure
Each control element that can be represented by a standard XForms control element has the
following general structure. (For information on XML element structure for
cfformitem,
cfformgroup, cfgrid, and cftree tags, see the following sections.)
<xf:tagname bind="bindid" id="bindid">
<xf:label>label</xf:label>
<xf:extension>
<cf:attribute name="type">controltype</cf:attribute>
<cf:attribute name="attribname>attribvalue</cf:attribute>
<cf:attribute name="attribname>attribvalue</cf:attribute>
.
.
.
</xf:extension>
</xf:tagname>
The following table describes the variable parts of this structure:
cfformitem type="*" (all but text, html) xf:group appearance="*"
cfformgroup type="*" xf:group appearance="*"
Part Description
tagname The xf or cf namespace element name, as identified in the table in “CFML
to XML tag mapping” on page 720.
bindid ID attribute of the model
xf:bind element for this control. Specified by the
control’s CFML tag
name attribute.
label Control label text. Specified by one of the following:
The CFML tag
label attribute
The
value attribute of the radiobutton, submit, and reset cfinput tags
The tag body content of
cfselect option subtags,
Not used for
cfgrid and cftree tags.
controltype Type of control. One of the following:
The
cfinput type attribute
Select, slider, or textarea, for the cfselect, cfslider, or cftextarea
tags, respectively.
Not used for
cfgrid and cftree tags.
CFML tag XML tag