<elementSpec>

<elementSpec> (element specification) documents the structure, content, and purpose of a single element type. 22.4.4 Element Specifications 22 Documentation Elements
Modultagdocs — 22 Documentation Elements
Attribute att.identified (@ident, @predeclare, @module, @mode)
ns (namespace) specifies the namespace to which this element belongs
Zustand Optional
Datentyp
data.namespace
usagespecifies the optionality of an attribute or element.
Zustand Optional
Gültige Werte:
req
(required)
mwa
(mandatory when applicable)
rec
(recommended)
rwa
(recommended when applicable)
opt
(optional) [Vorgabe]
Verwendet von model.oddDecl
Kann enthalten
Deklaration
element elementSpec
{
   att.global.attributes,
   att.identified.attributes,
   attribute ns { data.namespace }?,
   attribute usage { "req" | "mwa" | "rec" | "rwa" | "opt" }?,
   (
      model.glossLike*,
      classes?,
      content?,
      attList?,
      exemplum*,
      remarks*,
      listRef*
   )
}
Beispiel
<elementSpec
  module="tagdocs"
  xml:id="Code"
  usage="mwa"
  ident="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>