User Guide
Creating a tag definition file 203
You can create the definition file in one of the following ways:
• Write it manually.
• Create it from an existing tag definition file.
• Use the Tag Definitions Library dialog box to add a tag and edit the generated file.
The following sections describe how to define attribute categories
Defining attributes
The attributes block defines attributes inside the main tag block.
See ../VTML_Reference/attributes.htmlattributes/a in the VTML Reference for
syntax and usage information.
The attributes block can only contain attrib tags. The following example
demonstrates the definition of four tag attributes:
<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
• Enumerated values for the
align attribute
The optional caption attribute specifies the form in which the option appears in the
drop-down lists, while the value attribute specifies the underlying value used by the
attribute.
See ../VTML_Reference/attrib.htmlattrib/a in the VTML Reference for syntax and
usage information.
Defining attribute categories
Use the attribcategories section to organize the attributes when viewed in Tag
Inspector. The attribcategories block can only contain attribgroup tags. The
following example shows four attribute category definitions.
<attribcategories>
<attribgroup name="appearance"
elements="background,bgproperties,leftmargin,,topmargin"/>
<attribgroup name="colors"
elements="bgcolor,vlink,alink,link,text"/>
<attribgroup name="misc"
elements="gizmo"/>
</attribcategories>
See ../VTML_Reference/attribgroup.htmlattribgroup/a in the VTML Reference for
syntax and usage information.