TEI: Guidelines for Electronic Text Encoding and Interchange

P5 Version 4.10.2. Last updated on 4th September 2025, revision bcfa98f42

<macroSpec>

<macroSpec> (macro specification) documents the function and implementation of a pattern. [23.3 Specification Elements 23.7 Macro Specifications]
Module tagdocs — Documentation Elements
Attributes
Member of
model.oddDecl
Example
<macroSpec module="tei"
ident="macro.phraseSeq">

<content>
<alternate minOccurs="0"
maxOccurs="unbounded">

<textNode/>
<classRef key="model.gLike"/>
<classRef key="model.phrase"/>
<classRef key="model.global"/>
</alternate>
</content>
</macroSpec>
Content model
<content>
<sequence>
<alternate minOccurs="0"
maxOccurs="unbounded">

<classRef key="model.identSynonyms"/>
<classRef key="model.descLike"/>
</alternate>
<alternate minOccurs="0" maxOccurs="1">
<elementRef key="content"/>
<elementRef key="valList"/>
</alternate>
<elementRef key="constraintSpec"
minOccurs="0" maxOccurs="unbounded"/>

<elementRef key="exemplum" minOccurs="0"
maxOccurs="unbounded"/>

<elementRef key="remarks" minOccurs="0"
maxOccurs="unbounded"/>

<elementRef key="listRef" minOccurs="0"
maxOccurs="unbounded"/>

</sequence>
</content>
Schema Declaration
<rng:element name="macroSpec">
<rng:ref name="att.global.attributes"/>
<rng:ref name="att.global.analytic.attributes"/>
<rng:ref name="att.global.change.attributes"/>
<rng:ref name="att.global.facs.attributes"/>
<rng:ref name="att.global.linking.attributes"/>
<rng:ref name="att.global.rendition.attributes"/>
<rng:ref name="att.global.responsibility.attributes"/>
<rng:ref name="att.global.source.attributes"/>
<rng:ref name="att.identified.attributes"/>
<rng:ref name="att.combinable.attributes"/>
<rng:ref name="att.deprecated.attributes"/>
<rng:group>
<rng:zeroOrMore>
<rng:choice>
<rng:ref name="model.identSynonyms"/>
<rng:ref name="model.descLike"/>
</rng:choice>
</rng:zeroOrMore>
<rng:optional>
<rng:choice>
<rng:ref name="content"/>
<rng:ref name="valList"/>
</rng:choice>
</rng:optional>
<rng:zeroOrMore>
<rng:ref name="constraintSpec"/>
</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.global.analytic.attributes,
 att.global.change.attributes,
 att.global.facs.attributes,
 att.global.linking.attributes,
 att.global.rendition.attributes,
 att.global.responsibility.attributes,
 att.global.source.attributes,
 att.identified.attributes,
 att.combinable.attributes,
 att.deprecated.attributes,
 (
 ( model.identSynonyms | model.descLike )*,
 ( content | valList )?,
 constraintSpec*,
 exemplum*,
 remarks*,
 listRef*
 )
}

[English] [Deutsch] [Español] [Italiano] [Français] [日本語] [한국어] [中文]



TEI Guidelines P5 Version 4.10.2. Last updated on 4th September 2025, revision bcfa98f42. This page generated on 2025年09月04日T16:27:03Z.

AltStyle によって変換されたページ (->オリジナル) /