<exemplum>

<exemplum> (exemple) contient un exemple qui montre l'utilisation d'un élément avec de possibles paragraphes de commentaires. 22.4.4 Element Specifications
Moduletagdocs — 22 Documentation Elements
Attributs att.typed (@type, @subtype) att.translatable (@version)
Utilisé par
Peut contenir
core: p
linking: ab
tagdocs: eg egXML
Declaration

<rng:element name="exemplum">
<rng:ref name="att.global.attributes"/>
<rng:ref name="att.typed.attributes"/>
<rng:ref name="att.translatable.attributes"/>
<rng:group>
 <rng:zeroOrMore>
  <rng:ref name="model.pLike"/>
 </rng:zeroOrMore>
 <rng:choice>
  <rng:ref name="egXML"/>
  <rng:ref name="eg"/>
 </rng:choice>
 <rng:zeroOrMore>
  <rng:ref name="model.pLike"/>
 </rng:zeroOrMore>
</rng:group>
</rng:element>
element exemplum
{
   att.global.attributes,
   att.typed.attributes,
   att.translatable.attributes,
   ( model.pLike*, ( egXML | eg ), model.pLike* )
}
Exemple
<exemplum>
 <p>The <gi>name</gi> element can be used for both personal names and place names:</p>
 <eg><![CDATA[ <q>My dear <name type="person">Mr.
   Bennet</name>,</q> said his lady to him one day,
   <q>have you heard that <name type="place">Netherfield
   Park</name> is let at last?</q>]]></eg>
 <p>As shown above, the <att>type</att> attribute may be used to distinguish the one from the
   other.</p>
</exemplum>

Note that an explicit end-tag must be supplied for the paragraph immediately preceding the eg element within anexemplum, to prevent the eg from being mistaken for part of the paragraph.