Specifications
Extending Dreamweaver MX 25
The following table describes the tags and attributes that you can use within a document type
definition file.
Element Type
Tag Attribute Required Description
documenttype
(root)
Yes Parent node
id Yes Unique identifier across all document type
definition files.
servermodel No Specify the associated server model (case
sensitive); by default, these are the valid values:
ASP.NET C#
ASP.NET VB
ASP VBScript
ASP JavaScript
ColdFusion
JSP
PHP MySQL
These names are the names returned by a call to
the getServerModelDisplayName() functions
that are defined in the server model
implementation files, which are located in the
Configuration/ServerModels folder.
Extension developers can create new server
models, which would extend this list.
internaltype Yes A broad classification of how a file is treated in
Dreamweaver. The internal type identifies whether
the Design view is enabled for this document and
handles special cases such as
Dreamweaver Templates or Extensions.
Valid values are:
Dynamic
DWExtension (has special display regions)
DWTemplate (has special display regions)
HTML
HTML4
Text (Code view only)
XHTML1
XML (Code view only)
All server model-related document types should
map to Dynamic. HTML should map to HTML.
Script files such as .css, .js, .vb, and .cs should map
to Text.
If internaltype is DWTemplate, you should also
specify dynamicid. If you omit dynamicid in this
case, the new blank template that is created from
the New Document dialog box does not have its
document type recognized by the Server Behavior
or Bindings panel. Instances of this template do
not know they are supposed to be anything
besides HTML.
dynamicid No A reference to the unique identifier of a dynamic
document type. This attribute is meaningful only
when internaltype is DWTemplate. This
attribute lets you associate a dynamic template
with a dynamic document type.