<content>

<content> [22.4.4 Element Specifications]
Modultagdocs — Documentation Elements
Attributeatt.global (@xml:id, @n, @xml:lang, @rend, @style, @rendition, @xml:base, @xml:space) (att.global.linking (@corresp, @synch, @sameAs, @copyOf, @next, @prev, @exclude, @select)) (att.global.analytic (@ana)) (att.global.facs (@facs)) (att.global.change (@change))
allowTextwhen true, indicates that textual content is permitted.
Zustand Optional
Datentyp

<rng:ref name="data.truthValue"/>
data.truthValue
autoPrefixcontrols whether or not pattern names generated in the corresponding Relax NG schema source are automatically prefixed to avoid potential nameclashes.
Zustand Optional
Datentyp

<rng:ref name="data.truthValue"/>
data.truthValue
Gültige Werte:
true
Each name referenced in e.g. a <rng:ref> element within a content model is automatically prefixed by the value of the prefix attribute on the current schemaSpec [Vorgabe]
false
No prefixes are added: any prefix required by the value of the prefix attribute on the current schemaSpec must therefore be supplied explicitly, as appropriate.
Mitglied des
Enthalten in
Kann enthaltenANY
Deklaration

<rng:element name="content">
 <rng:ref name="att.global.attributes"/>
 <rng:ref name="att.global.linking.attributes"/>
 <rng:ref name="att.global.analytic.attributes"/>
 <rng:ref name="att.global.facs.attributes"/>
 <rng:ref name="att.global.change.attributes"/>
 <rng:optional>
  <rng:attribute name="allowText">
   <rng:ref name="data.truthValue"/>
  </rng:attribute>
 </rng:optional>
 <rng:optional>
  <rng:attribute name="autoPrefixa:defaultValue="true">
   <rng:choice>
    <rng:value>true</rng:value>
    <rng:value>false</rng:value>
   </rng:choice>
  </rng:attribute>
 </rng:optional>
 <rng:choice>
  <rng:group>
   <rng:ref name="valList"/>
  </rng:group>
  <rng:oneOrMore>
   <rng:ref name="macro.anyXML"/>
  </rng:oneOrMore>
  <rng:zeroOrMore>
   <rng:ref name="model.contentPart"/>
  </rng:zeroOrMore>
 </rng:choice>
</rng:element>
element content
{
   att.global.attributes,
   att.global.linking.attributes,
   att.global.analytic.attributes,
   att.global.facs.attributes,
   att.global.change.attributes,
   attribute allowText { data.truthValue }?,
   attribute autoPrefix { "true" | "false" }?,
   ( ( valList ) | macro.anyXML+ | model.contentPart* )
}
Beispiel

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

<content>
 <alternate>
  <classRef key="model.pLikemaxOccurs="unbounded"/>
  <sequence>
   <elementRef key="summaryminOccurs="0maxOccurs="1"/>
   <elementRef key="msItemmaxOccurs="unbounded"/>
  </sequence>
 </alternate>
</content>
Beispiel

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>