There are certain rules that apply to the design and implementation of constraints.
@domainsattribute for each structural type that is integrated into the document type. For DTDs, the contribution for the
@domainsattribute is specified in the constraint module file; for XSD and RELAX NG, the contribution to the
@domainsattribute is specified directly in the document type shell.
The content model and attributes of an element can be constrained by only one constraint module. If two constraint modules exist that constrain the content model or attributes for a specific element, those two modules must be replaced with a new constraint module that reflects the aggregation of the two original constraint modules.
A domain module can be constrained by only one constraint module. This means that all restrictions for the extension elements that are defined in the domain must be contained within that one constraint module.
<refsyn>from reference.mod and constrains
<context>from task.mod is not allowed. This rule maintains granularity of reuse at the module level.
Constraint modules that restrict different elements from within the same vocabulary module can be combined with one another. Such combinations of constraints on a single vocabulary module have no meaningful order or precedence.
Return to main page.
Standards Track Work Product
|Copyright © OASIS Open 2015. All Rights Reserved.||21 August 2015|