TEI: Guidelines for Electronic Text Encoding and Interchange

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

<num>

<num> (number) contains a number, written in any form. [3.6.3 Numbers and Measures]
Module core — Elements Available in All TEI Documents
Attributes
type type⚓︎ indicates the type of numeric value.
Derived from att.typed
Status Optional
Suggested values include:
cardinal
absolute number, e.g. 21, 21.5
ordinal
ordinal number, e.g. 21st
fraction
fraction, e.g. one half or three-quarters
percentage
a percentage
Note

If a different typology is desired, other values can be used for this attribute.

value value⚓︎ supplies the value of the number in standard form.
Status Optional
Datatype teidata.numeric
Values a numeric value.
Note

The standard form used is defined by the TEI datatype teidata.numeric.

Member of
model.measureLike
Contained by
analysis: cl phr s span
cmc: post
figures: cell figDesc
iso-fs: fDescr fsDescr
linking: ab seg
spoken: u writing
tagdocs: eg valDesc
verse: metSym rhyme
Note

Detailed analyses of quantities and units of measure in historical documents may also use the feature structure mechanism described in chapter 19 Feature Structures. The num element is intended for use in simple applications.

Example
<p>I reached <num type="cardinal" value="21">twenty-one</num> on
my <num type="ordinal" value="21">twenty-first</num> birthday</p>
<p>Light travels at <num value="3E10">×ばつ10<hi rend="sup">10</hi>
</num> cm per second.</p>
Content model
<content>
<macroRef key="macro.phraseSeq"/>
</content>
Schema Declaration
<rng:element name="num">
<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.cmc.attributes"/>
<rng:ref name="att.ranging.attributes"/>
<rng:ref name="att.typed.attribute.subtype"/>
<rng:optional>
<rng:attribute name="type">
<rng:choice>
<rng:value>cardinal</rng:value>
<rng:value>ordinal</rng:value>
<rng:value>fraction</rng:value>
<rng:value>percentage</rng:value>
<rng:ref name="teidata.enumerated"/>
</rng:choice>
</rng:attribute>
</rng:optional>
<rng:optional>
<rng:attribute name="value">
<rng:ref name="teidata.numeric"/>
</rng:attribute>
</rng:optional>
<rng:ref name="macro.phraseSeq"/>
</rng:element>
element num
{
 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.cmc.attributes,
 att.ranging.attributes,
 att.typed.attribute.subtype,
 attribute type
 {
 "cardinal" | "ordinal" | "fraction" | "percentage" | teidata.enumerated
 }?,
 attribute value { teidata.numeric }?,
 macro.phraseSeq
}

[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 によって変換されたページ (->オリジナル) /