Example: Apply multiple constraints to a single document-type shell using DTD
This section is non-normative.
You can apply multiple constraints to a single document-type shell. However, there can be only one constraint for a given element or domain.
Example
This section is non-normative.
Here is a list of constraint modules and what they do:
File name | What it constrains | Details |
---|---|---|
example-TopicConstraint.mod | <topic> |
|
example-SectionConstraint.mod | <section> |
Makes @id required |
example-HighlightingDomainConstraint.mod | Highlighting domain | Reduces the highlighting domain elements to <b> and
<i> |
N/A | <ph> |
Remove the <ph> element, allowing only domain extensions
(does not require a .mod file) |
All of these constraints can be integrated into a single
document-type shell for <topic>
, since they
constrain distinct element types and domains. The constraint for
the highlighting domain typically is located in the "DOMAIN
CONSTRAINT INTEGRATION" section, and it must be integrated before
the "DOMAIN ENTITIES" section. The other constraints typically are
located in the "ELEMENT-TYPE CONFIGURATION INTEGRATION" section,
and the order in which they are listed does not matter.