13.4.4 Content Model Descriptions
Content modules are described using nested tuples. Each tuple
contains four values: the type, the quantifier, the name, and a tuple
of children. Children are simply additional content module
The values of the first two fields are constants defined in the
model object of the xml.parsers.expat module. These
constants can be collected in two groups: the model type group and the
The constants in the model type group are:
The element named by the model name was declared to have a content
The named element allows a choice from a number of options; this is
used for content models such as
(A | B | C).
Elements which are declared to be
EMPTY have this model type.
Models which represent a series of models which follow one after the
other are indicated with this model type. This is used for models
(A, B, C).
The constants in the quantifier group are:
The model is option: it can appear once or not at all, as for
The model must occur one or more times (
The model must occur zero or more times, as for
See About this document... for information on suggesting changes.