User Guide

206 Chapter 11: Tag Libraries and Editors
The following table lists tagref attributes:
Because the tagref.prefix attribute can override the taglibrary.prefix attribute, 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 uses a modified version of the Macromedia VTML file format. The
following example demonstrates all the elements that Dreamweaver 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 UI. Mandatory
tagref.prefix
Specifies how the tag appears in Source view.
When used, the
tagref.prefix attribute
determines the prefix of the current tag. When
the attribute is defined, it overrides the value
specified for the
taglibrary.prefix attribute.
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