User Guide

Table Of Contents
728 Chapter 30: Creating Skinnable XML Forms
</xf:choices>
</xf:select1>
<xf:textarea bind="thoughts" id="thoughts">
<xf:label>Additional Comments</xf:label>
<xf:extension>
<cf:attribute name="type">textarea</cf:attribute>
<cf:attribute name="rows">5</cf:attribute>
<cf:attribute name="cols">40</cf:attribute>
</xf:extension>
</xf:textarea>
</xf:group>
<xf:group appearance="horizontal">
<xf:extension/>
<xf:submit id="submit" submission="comments">
<xf:label>Tell Us</xf:label>
<xf:extension>
<cf:attribute name="type">submit</cf:attribute>
<cf:attribute name="name">submit</cf:attribute>
</xf:extension>
</xf:submit>
<xf:submit id="reset">
<xf:label>Clear Fields</xf:label>
<reset ev:event="DOMActivate"/>
<xf:extension>
<cf:attribute name="name">reset</cf:attribute>
</xf:extension>
</xf:submit>
</xf:group>
Creating XSLT skins
This section provides information to help you create your own XSLT skins to process the XML
that ColdFusion MX generates. It assumes that you are familiar with XSLT and CSS
programming, and does not provide general information on writing XSLT transformations or
CSS styles. It does provide information about the following areas:
How ColdFusion passes form attribute values to the XML file
How extend XSLT skins that ColdFusion MX provides as templates
Basic techniques for extending the basic.xsl file to support additional cfformgroup and
cfformitem tag type attributes
How to extend the ColdFusion CSS files to enhance form appearance.
XSLT skin file locations
If you specify an XSLT skin by name and omit the .xsl suffix, ColdFusion MX looks for the file in
the
cfform script source directory and its subdirectories. You can specify the script source
directory in your
cfform tag scriptsrc attribute, and you can set a default location on the
Settings page in the ColdFusion MX Administrator. When you install ColdFusion MX, the
default location is set to /CFIDE/scripts/ (relative to the web root).