<content>

<content> (content model) contains the text of a declaration for the schema documented. 22.4.4 Element Specifications
Moduletagdocs — 22 Documentation Elements
AttributesGlobal attributes only
Used by
May contain
tagdocs: valList
Declaration

<rng:element name="content">
<rng:ref name="att.global.attributes"/>
<rng:zeroOrMore>
 <rng:choice>
  <rng:ref name="macro.schemaPattern"/>
  <rng:ref name="valList"/>
 </rng:choice>
</rng:zeroOrMore>
</rng:element>
element content { att.global.attributes, ( macro.schemaPattern | valList )* }
Example

This content model allows either a sequence of paragraphs or a series of msItem elements optionally preceded by a summary:

<content>
 <rng:choice>
  <rng:oneOrMore>
   <rng:ref name="model.pLike"/>
  </rng:oneOrMore>
  <rng:group>
   <rng:optional>
    <rng:ref name="summary"/>
   </rng:optional>
   <rng:oneOrMore>
    <rng:ref name="msItem"/>
   </rng:oneOrMore>
  </rng:group>
 </rng:choice>
</content>
Note
As the example shows, content models in P5 may be expressed using the RelaxNG syntax directly. More exactly, they are defined using the pattern macro.schemaPattern. Alternatively, a content model may be expressed using the TEI valList element.