- Example: Restrict the content model for the topic element using RNG
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 RNG
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 RNG
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 RNG
In this scenario, the DITA architect wants to remove the <ph>
element but allow the extensions of <ph>
that exist in the highlight, programming, software, and user interface domains.
- Example: Apply multiple constraints to a single document-type shell using RNG
In this scenario, the DITA architect wants to apply multiple constraints to a document-type shell.