Specifications
Tag Libraries and Editors 109
The following table lists tagref attributes:
Because the tagref.prefix attribute can override taglibrary.prefix, the relationship
between the two attributes can be confusing. The following table shows the relationship between
the
taglibrary.prefix and tagref.prefix attributes:
To define tags, Dreamweaver MX uses a modified version of Macromedia’s
VTML file format. The
following example demonstrates all the elements that Dreamweaver MX must use to define an
individual tag:
<tag name="input" bind="value" casesensitive="no" endtag="no">
<tagformat indentcontents="yes" formatcontents="yes" nlbeforetag ¬
nlbeforecontents=0 nlaftercontents=0 nlaftertag=1 />
<tagdialog file = "input.HTM"/>
<attributes>
<attrib name="name"/>
<attrib name="wrap" type="Enumerated">
<attriboption value="off"/>
<attriboption value="soft"/>
<attriboption value="hard"/>
</attrib>
<attrib name="onFocus" casesensitive="yes"/>
<event name="onFocus"/>
</attributes>
</tag>
Attribute Description Mandatory/
optional
tagref.name Used to refer to the tag in the user interface. Mandatory
tagref.prefix Specifies how the tag appears in Source view.
When used, tagref.prefix determines the
prefix of the current tag. When the attribute is
defined, it overrides the value specified for
taglibrary.prefix.
Optional
tagref.file References the VTML file for the tag. Optional
Is the taglibrary.prefix
defined?
Is the tagref.prefix defined? Resulting tag prefix
No No ’<’ + tagref.name
Yes No taglibrary.prefix +
tagref.name
No Yes tagref.prefix
Yes Yes tagref.prefix