<content>

<content> (模型宣告) 包含所記錄之模型的宣告文字。 22.4.4 Element Specifications
組件 tagdocs — 22 Documentation Elements
除全域屬性以外
autoPrefix controls whether or not pattern names generated in the corresponding RELAXNG schema source are automatically prefixed to avoid potential nameclashes.
狀態 非必備的
資料類型

<rng:ref name="data.truthValue"/>
data.truthValue
合法的值是:
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 [預設值]
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.
屬於
可包含 空白元素
宣告

<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*
}
例子
<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>