User Guide

Table Of Contents
Creating XSLT skins 729
You can also use a relative or absolute file path, or a URL, to specify the XSLT skin location.
ColdFusion MX uses the CFML page’s directory as the root of relative paths. The following
formats are valid:
Note: Hosting companies might move the default skin location folder out of CFIDE; this lets them
secure the CFIDE while giving site developers access to the files that you need for
cfform.
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 cfformitem and cfformgroup type attributes to xf:group element appearance
attributes.
It passes the name and value of tag attributes that it does not recognize or process in
cf:attribute elements.
This passthrough feature lets you create custom versions of any of the following items for your
XSLT to process:
The cfformitem types, such as rules, spacers, or other display elements
The cfgroup types, such as divided boxes or tabbed dialog boxes
The custom cfinput types, such as a custom year chooser element
ColdFusion tag attributes, such as those used to control validation
Extending ColdFusion XSLT skins
ColdFusion MX 7 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 file names start with an underscore (_), and the files are shared by multiple base skins. The
following tables describes the XSL files, which are located in the cf_webroot\CFIDE\scripts\xsl
directory:
Format Location
<cfform format="xml" skin="basic"> Searches for XML/CSS in the default directory
and its subdirectories.
<cfform format="xml" skin="c:\foo\bar\basic.xsl"> Uses the absolute path.
<cfform format="xml" skin="basic.xsl"> Searches in the current directory.
<cfform format="xml" skin="..\basic.xsl:"> Searches the parent of the current directory.
<cfform format="xml"
skin="http://anywhereOnTheWeb/basic.xsl">
Uses the specified URL.
File Description
default.xsl The default transform that ColdFusion MX uses if you do not specify a
skin attribute for an XML format form. Identical to the basic.xsl file.
basic.xsl A basic form format that arranges form elements using a table.