User Guide

Table Of Contents
709
CHAPTER 30
Creating Skinnable XML Forms
This chapter describes how to create XML skinnable forms, which are forms that generate
XForms-compliant XML and are normally formatted using an XSLT (extensible stylesheet
language transformations) skin. The chapter also provides information on the format of the XML
that Macromedia ColdFusion MX 7 generates for transformation by XSLT skins.
You can use XML skinnable forms with the skins that ColdFusion MX provides without having
any knowledge of either XML or XSLT. Therefore, the first two sections in this chapter do not
require that you have any knowledge of these technologies. The rest of this chapter, however,
assumes that you have some familiarity with XML and XSLT. The chapter does not provide an
introduction to, or detailed information on, writing XSLT, and it does not document XML. For
information on using XML with ColdFusion MX, see Chapter 35, “Using XML and WDDX,
on page 843.
Contents
About XML skinnable forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 709
Building XML skinnable forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 712
ColdFusion XML format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 715
Creating XSLT skins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 728
About XML skinnable forms
A ColdFusion MX form with a format="XML" attribute is an XML skinnable form. When
ColdFusion MX processes an XML skinnable form, it generates the form as XML. By default, it
applies an XML Stylesheet Language Transform (XSLT) skin to the XML and generates a
formatted HTML page for display on the user’s browser. Optionally, you can specify an XSLT
file, or you can process the raw XML in your ColdFusion page.
By using XML skinnable forms, you can control the type and appearance of the forms that
ColdFusion MX generates and displays. ColdFusion MX provides a set of standard skins,
including a default skin that it uses if you do not specify another skin (or tell it not to apply a
skin). You can also create your own XSLT skin and have ColdFusion use it to give your forms a
specific style or appearance.