- Example: Restrict the content model for the topic element using DTD
In this scenario, the DITA architect for Acme Incorporated wants to redefine the content model for the topic document type. They want to omit certain elements, make the <shortdesc>
element required, and disallow topic nesting.
- Example: Constrain attributes for the section element using DTD
In this scenario, a DITA architect wants to redefine the attributes for the <section>
element. They want to make the @id
attribute required.
- Example: Constrain a domain module using DTD
In this scenario, a DITA architect wants to use only a subset of the elements defined in the highlighting domain. They want to use <b>
and <i>
but not any other of the elements in the domain. They want to integrate this constraint into the document-type shell for task.
- Example: Replace a base element with the domain extensions using DTD
In this scenario, a DITA architect wants to remove the <ph>
element but allow the extensions of <ph>
that exist in the highlighting, programming, software, and user interface domains.
- Example: Apply multiple constraints to a single document-type shell using DTD
You can apply multiple constraints to a single document-type shell. However, there can be only one constraint for a given element or domain.