User Guide

145
Defining attributes
The ATTRIBUTES block defines attributes inside the main TAG block. The
ATTRIBUTES block can only contain
ATTRIB tags. The following example
demonstrates the definition of four tag attributes:
VALUE, TITLE, ALT, and ALIGN.
<ATTRIBUTES>
<ATTRIB NAME="VALUE">
<ATTRIB NAME="TITLE">
<ATTRIB NAME="ALT">
<ATTRIB NAME="ALIGN">
</ATTRIBUTES>
In most cases, features such as Tag Insight require more than just the names of the
attributes. You can use the
ATTRIB tag to define the following attributes:
Attribute value types (color, file path, and so on.)
Enumerated values (LEFT, RIGHT, TOP, BOTTOM for the ALIGN attribute)
Defining attribute value types
The value type for a specific attribute can be specified using the TYPE attribute in the
ATTRIB tag.
<ATTRIBUTES>
<ATTRIB NAME="VALUE" TYPE="text" />
<ATTRIB NAME="BGCOLOR" TYPE="color"/>
<ATTRIB NAME="FONTFACE" TYPE="font" />
</ATTRIBUTES>
The following table describes the valid value types of the ATTRIB tag.
Value type Description
TEXT Free text content
ENUMERATED A list of enumerated values
COLOR A color value (name or hex)
FONT Font name or font family
FILEPATH A full file path
DIRECTORY A directory path
FILENAME File name only
RELATIVEPATH A relative representation of the path
FLAG An ON/OFF attribute containing no value
The following types are used in ColdFusion Studio and JRun Studio ONLY
QUERYNAME A record set name
EXPRESSION An language expression