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.

ev

http://www.w3.org/2001/xml-events

System events. Used for the cfinput type="reset".

cf

 

All ColdFusion extensions, including passthrough of attributes that do not correspond to XForms elements or attributes.