User Guide
Creating Tag Definitions 175
You can create the definition file in three 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.
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:
<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.
Defining attribute categories
Use the attribcategories section to define attribute categories. The categories are
used to organize the attributes when viewed in the Tag Inspector. The
attribcategories block can only contain attribgroup tags. The following example
demonstrates the definition of four categories.
<attribcategories>
<attribgroup name="appearance"
elements="background,bgproperties,leftmargin,,topmargin"/>
<attribgroup name="colors"
elements="bgcolor,vlivk,alink,link,text"/>
<attribgroup name="misc"
elements="gizmo"/>
</attribcategories>