126.96.36.199 Examples: Constraints
This section of the specification contains examples and scenarios. They illustrate a
variety of ways that constraints can be used; they also provide examples of the DTD coding
requirements for constraints and how constraints are integrated into document-type
188.8.131.52.1 Example: Redefine the content model for the topic element
In this scenario, an information architect for Acme, Incorporated wants to redefine the content model for the topic document type. She wants to omit the
<abstract> element and make the
<shortdesc> element required; she also wants to omit the
<related-links> element and disallow topic nesting.
184.108.40.206.2 Example: Constrain attributes for the section element
In this scenario, an information architect wants to redefine the attributes for the
<section> element. He wants to make the
@id attribute required and omit the
220.127.116.11.3 Example: Constrain a domain module
In this scenario, an information architect wants to use only a subset of the elements defined in the highlighting domain. She wants to use
<i,> but not
<u>. She wants to integrate this constraint into the document-type shell for task.
18.104.22.168.4 Example: Replace a base element with the domain extensions
In this scenario, an information architect wants to remove the
<ph> element but allow the extensions of
<ph> that exist in the highlighting, programming, software, and user interface domains.
22.214.171.124.5 Example: Apply multiple constraints to a single document-type shell
You can apply multiple constraints to a single document-type shell. However, there can be only one constraint for a given element or domain. ►
◄ 126.96.36.199.6 Example: Correct the constraint for the machinery task
For DITA 1.3, the OASIS DITA TC failed to update the constraint for the machinery task. In this scenario, an information architect corrects that oversight; she makes the (new for DITA 1.3)
<tasktroubleshooting> element available in the body of the machinery task.