Adobe COLDFUSION 9 Manual page 807

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Requesting and Presenting Information
Format
<cfform format="xml" skin="basic">
<cfform format="xml" skin="c:\foo\bar\basic.xsl">
<cfform format="xml" skin="basic.xsl">
<cfform format="xml" skin="..\basic.xsl:">
<cfform format="xml" skin="http://anywhereOnTheWeb/basic.xsl">
Note: Hosting companies sometimes move the default skin location folder out of CFIDE. Doing this lets them secure the
CFIDE while giving site developers access to the files that you need for
Attribute and value passthrough
ColdFusion passes form tag attributes or attribute values that it does not specifically process directly to the XML, as
follows:
• It converts
and
cfformitem
• It passes the name and value of tag attributes that it does not recognize or process in
This passthrough feature lets you create custom versions of any of the following items for your XSLT to process:
• The
types, such as rules, spacers, or other display elements
cfformitem
• The
types, such as divided boxes or tabbed dialog boxes
cfgroup
• The custom
types, such as a custom year chooser element
cfinput
• ColdFusion tag attributes, such as those used to control validation
Extending ColdFusion XSLT skins
ColdFusion provides basic XSLT transforms that you can use as templates and extend for making your own skin. Each
skin has a base XSL file, which include several utility XSL files. Utility filenames start with an underscore (_), and
multiple base skins share the files. The following table describes the XSL files, which are located in the cf_webroot\\x
File
default.xsl
basic.xsl
basiccss.xsl
colorname.xsl
_cfformvalidation.xsl
_formelements.xsl
_group_type.xsl
_group_type_table.xsl
_group_type_css.xsl
attributes to
cfformgrouptype
Description
The default transform that ColdFusion uses if you do not specify a
Identical to the basic.xsl file.
A basic form format that arranges form elements using a table.
A basic form format that arranges form elements using HTML
A basic form format that arranges form elements using a table and applies a color scheme determined by
the colorname to the form. Based on the basic.xsl file.
Applies ColdFusion validation rules. Used by all skins.
Transformation rules for form elements except for those defined using
skins
Transformation rules for
cfformgroup
in the name are used by basic.xsl and its derivatives. Files with css in the name are used by basiccss.xsl.
Last updated 8/5/2010
Location
Searches for XML/CSS in the default directory and its
subdirectories.
Uses the absolute path.
Searches in the current directory.
Searches the parent of the current directory.
Uses the specified URL.
.
cfform
element
xf:group
appearance
cf:attribute
skin
attribute for an XML format form.
and
div
span
cfformgroup
tags. The tag
attribute is part of the filename. Files with table
type
802
attributes.
elements.
tags.
tags. Used by all

Advertisement

Table of Contents
loading

Table of Contents