<elementSpec>

<elementSpec> (specifica dell'elemento) documenta struttura, contenuto e scopo di un unico tipo di elemento 22.4.4 Element Specifications 22 Documentation Elements
Modulotagdocs — 22 Documentation Elements
Attributi att.identified (@ident, @predeclare, @module, @mode)
ns (spazio del nome) indica lo spazio del nome al quale appartiene tale elemento
Stato Opzionale
Tipo di dati

<rng:ref name="data.namespace"/>
data.namespace
Usato da
Può contenere
Dichiarazione

<rng:element name="elementSpec">
<rng:ref name="att.global.attributes"/>
<rng:ref name="att.identified.attributes"/>
<rng:optional>
 <rng:attribute name="ns"
   a:defaultValue="http://www.tei-c.org/ns/1.0">

  <rng:ref name="data.namespace"/>
 </rng:attribute>
</rng:optional>
<rng:group>
 <rng:zeroOrMore>
  <rng:ref name="model.glossLike"/>
 </rng:zeroOrMore>
<!-- <rng:ref name="macro.glossSeq"/>-->
 <rng:optional>
  <rng:ref name="classes"/>
 </rng:optional>
 <rng:optional>
  <rng:ref name="content"/>
 </rng:optional>
 <rng:optional>
  <rng:ref name="attList"/>
 </rng:optional>
 <rng:zeroOrMore>
  <rng:ref name="exemplum"/>
 </rng:zeroOrMore>
 <rng:zeroOrMore>
  <rng:ref name="remarks"/>
 </rng:zeroOrMore>
 <rng:zeroOrMore>
  <rng:ref name="listRef"/>
 </rng:zeroOrMore>
</rng:group>
</rng:element>
element elementSpec
{
   att.global.attributes,
   att.identified.attributes,
   attribute ns { data.namespace }?,
   (
      model.glossLike*,
      classes?,
      content?,
      attList?,
      exemplum*,
      remarks*,
      listRef*
   )
}
Esempio
<elementSpec module="tagdocsident="code">
 <equiv/>
 <gloss/>
 <desc>contains literal code</desc>
 <classes>
  <memberOf key="model.emphLike"/>
 </classes>
 <content>
  <rng:text/>
 </content>
 <attList>
  <attDef ident="typeusage="opt">
   <equiv/>
   <desc>the language of the code</desc>
   <datatype>
    <rng:ref name="data.enumerated"/>
   </datatype>
  </attDef>
 </attList>
</elementSpec>