An attribute domain consists of one file. The file must have a single attribute group
- definition that contains the definition of the attribute itself, where the attribute group is
- named
For example, the
Because the constraint module includes the module that it modifies, only one constraint
- module can be used per vocabulary module (otherwise the module being constrained would be
- included multiple times). If multiple constraint modules are needed for a single vocabulary
- module, they must be combined into a single XSD module. For example, when combining existing
- constraint modules for
When constraining a list of elements provided by a domain, there must be a group
The following code
For a more complete example, see
The following code
XSD-based document-type shells use the XML Schema redefine feature
- (
XSD-based document-type shells contain the following sections.
-For each element or attribute domain that is integrated into the document-type shell,
- this section uses an
For
- example:
The group inclusion section contains
For both map and topic shells, this section also must include or redefine the following - groups; it must also include the module file for each group:
-The group files and the module files for base groups can be specified in any order.
-For each element extended by one or more domains, the document-type shell must redefine
- the model group for the element to a list of alternatives including the literal name of
- the element and the element extension model group from each domain that is providing
- specializations. To integrate a new domain in the document-type shell, use the schema
-
For each attribute extended by one or more domains, the document-type shell must
- redefine the attribute extension model group for the attribute to a list of alternatives
- including the literal name of the attribute and the attribute extension model group from
- each domain that is providing specializations. To integrate a new attribute domain in
- the document-type shell, use the schema
For example, the following portion of a document-type shell
- includes the common metadata module and then adds a domain extension of the
-
The module inclusion section includes the module XSD files for structural types used in - the shell. These must be placed after the group and files and redefinitions.
-This section must also include any other module XSD
- files required by the topic or map types.
If a structural type is constrained, that constraint will be included rather than the - module itself; for example, in a document-type shell that constrains the task - specialization, the task constraint module will be included rather than the task - module.
-For example, the following portion of a document-type shell
- includes the structural modules for topic and
- concept:.
The
For example, the following sample defines the
-
This section defines whether and how topics can nest by redefining the
-
Optionally,
For example, in the concept vocabulary module delivered by OASIS,
- the
A structural or domain vocabulary module must contain a declaration for each specialized
- element type named by the module. While the XSD standard allows content models to refer to
- undeclared element types, all element types named in content models within a vocabulary
- module must have an
Domain modules consist of a single XSD document. Structural modules consist of two modules; - one module contains all element name groups, and the other contains all other declarations - for the module.
-For each element type that is declared in the vocabulary module, the following set of - groups and declarations must be used to define the content model and attributes for the - element type. These groups are typically placed together within the module for clarity.
-For example, the following set of declarations shows each of the
- required groups and definitions for the specialized
Specializations and constraints in XML Schema are implemented using the XSD
-
You
A structural vocabulary module has two files:
-The root element for a structural type must reference the
For topic modules, the last position in the content model is typically a reference to the
-
For example, the vocabulary module for the
-