<macroSpec>

<macroSpec> (macro specification) documents the function and implementation of a pattern.
Modul tagdocs — 22 Documentation Elements
Neben global gültigen Attributen att.identified (@ident, @predeclare, @module) (att.combinable (@mode))
type indicates which type of entity should be generated, when an ODD processor is generating a module using XML DTD syntax.
Zustand Optional
Gültige Werte:
pe
(parameter entity)
dt
(datatype entity)
Verwendet von
Kann enthalten
Deklaration

<rng:element name="macroSpec">
 <rng:ref name="att.global.attributes"/>
 <rng:ref name="att.identified.attributes"/>
 <rng:ref name="att.combinable.attributes"/>
 <rng:optional>
  <rng:attribute name="type">
   <rng:choice>
    <rng:value>pe</rng:value>
    <rng:value>dt</rng:value>
   </rng:choice>
  </rng:attribute>
 </rng:optional>
 <rng:group>
  <rng:zeroOrMore>
   <rng:ref name="model.glossLike"/>
  </rng:zeroOrMore>
  <rng:zeroOrMore>
   <rng:choice>
    <rng:ref name="stringVal"/>
    <rng:ref name="content"/>
   </rng:choice>
  </rng:zeroOrMore>
  <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 macroSpec
{
   att.global.attributes,
   att.identified.attributes,
   att.combinable.attributes,
   attribute type { "pe" | "dt" }?,
   (
      model.glossLike*,
      ( stringVal | content )*,
      exemplum*,
      remarks*,
      listRef*
   )
}
Beispiel
<macroSpec module="tei" type="pe" ident="macro.phraseSeq">
 <content>
  <rng:zeroOrMore>
   <rng:choice>
    <rng:text/>
    <rng:ref name="model.gLike"/>
    <rng:ref name="model.phrase"/>
    <rng:ref name="model.global"/>
   </rng:choice>
  </rng:zeroOrMore>
 </content>
</macroSpec>