This topic covers general coding requirements for defining element types in both
structural and element-domain vocabulary modules. In addition, it covers how to create the
@domains attribute contribution for these modules.
A vocabulary module that defines a structural or element domain specialization is composed of two files:
A domain declaration entity is used to construct the effective value of the
@domains attribute for a map or topic type.
@domainsattribute contribution for the current module. See domains attribute rules and syntax for details on how to construct this value.
For example, the
@domains attribute contributions for
the concept structural module and the highlighting domain module are are constructed as
A structural or domain vocabulary module must contain a declaration for each element type that is named by the module. While the XML standard allows content models to refer to undeclared element types, the DITA standard does not permit this. All element types or attribute lists that are named within a vocabulary module must be declared in one of the following objects:
The following components make up a single element definition in a DITA DTD-based vocabulary module.
For example: <!ENTITY % topichead "topichead">
<!ENTITY % topichead.content "((%topicmeta;)?, (%anchor; | %data.elements.incl; | %navref; | %topicref;)*) ">
@classand the attributes provided by the global-atts parameter entity). Consistent use and naming of the tagname.attributes parameter entity enables the use of constraint modules to restrict attributes.
<!ENTITY % topichead.attributes "navtitle CDATA #IMPLIED outputclass CDATA #IMPLIED keys CDATA #IMPLIED copy-to CDATA #IMPLIED %topicref-atts; %univ-atts;" >
<!ELEMENT topichead %topichead.content;>
<!ATTLIST topichead %topichead.attributes;>
@classattribute for every element that is declared in the module. The value of the attribute is constructed according to the rules in class attribute rules and syntax. The ATTLIST declaration for the
@classattribute should also include a reference to the global-atts parameter entity.
<topichead>element (a specialization of the
<topicref>element in the base map type) includes global attributes with an entity, then the definition of the
@classattribute, as follows:
<!ATTLIST topichead %global-atts; class CDATA "+ map/topicref mapgroup-d/topichead ">
Return to main page.
Standards Track Work Product
|Copyright © OASIS Open 2016. All Rights Reserved.||30 August 2016|