
784
DEVELOPING
COLDFUSION 9 APPLICATIONS
Requesting and Presenting Information
Las
t
upda
te
d 8/5/2010
How ColdFusion processes XML skinnable forms
When ColdFusion processes a
cfform
tag that specifies XML format and an XSLT skin, it does the following to the form:
1
Converts the CFML form tags into an XForms-compliant XML text format and makes it available in a variable with
the same name as the form. ColdFusion ignores inline text or HTML tags in the form, and does not pass them to
the XML. (It does process HTML
option
tags that are children of a
cfselect
tag.)
2
Applies an XSLT skin to the XML; for example, to convert the form into HTML. The XSLT file specifies the CSS
style sheet.
3
Returns the resulting, styled, form to the client, such as a user’s browser.
If you omit the
cfform
tag
skin
attribute, ColdFusion uses a default skin.
If you specify
skin="none"
, ColdFusion performs the first step, but omits the remaining steps. Your application must
handle the XML version of the form as needed. This technique lets you specify your own XSL engine, or incorporate
the form as part of a larger form.
ColdFusion XSL skins
ColdFusion provides the following XSLT skins:
•
basic
•
basiccss
•
basiccss_top
•
beige
•
blue
•
default
•
lightgray
•
red
•
silver
The XSLT skin files are located in the
cf_webroot\CFIDE\scripts\xsl
directory, and the CSS files that they use for style
definitions are located in the
cf_webroot\CFIDE\scripts\css
directory.
The default skin and the basic skin format forms identically. ColdFusion uses the default skin if you do not specify a
skin
attribute in the
cfform
tag. The default and basic skins are simple skins that use tables for arranging the form
contents. The basic skin uses
div
and
span
tags to arrange the elements. The skins with names of colors are like the
basic skin, but make more use of color.
Содержание COLDFUSION 9
Страница 1: ...Developing Applications ADOBE COLDFUSION 9...