<content>

<content> (dichiarazione dello schema) contiene il testo di una dichiarazione dello schema utilizzato 22.4.4 Element Specifications
Modulo tagdocs — 22 Documentation Elements
Oltre agli attributi globali
autoPrefix controls whether or not pattern names generated in the corresponding RELAXNG schema source are automatically prefixed to avoid potential nameclashes.
Stato Opzionale
Tipo di dati

<rng:ref name="data.truthValue"/>
data.truthValue
I valori legali sono:
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 [Valore di default]
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.
Usato da
Può contenere Elemento vuoto
Dichiarazione

<rng:element name="content">
 <rng:ref name="att.global.attributes"/>
 <rng:optional>
  <rng:attribute name="autoPrefix" a:defaultValue="true">
   <rng:choice>
    <rng:value>true</rng:value>
    <rng:value>false</rng:value>
   </rng:choice>
  </rng:attribute>
 </rng:optional>
 <rng:zeroOrMore>
  <rng:group>
   <rng:ref name="macro.schemaPattern"/>
  </rng:group>
 </rng:zeroOrMore>
</rng:element>
element content
{
   att.global.attributes,
   attribute autoPrefix { "true" | "false" }?,
   macro.schemaPattern*
}
Esempio

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>