Text Encoding Initiative

The XML Version of the TEI Guidelines

<num>


<num> (number) contains a number, written in any form.
Attributes (In addition to global attributes and those inherited from data)
type indicates the type of numeric value.
Datatype: CDATA
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 halves
percentage e.g. ten percent
Default: #IMPLIED
Note

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

value supplies the value of the number in an application-dependent standard form.
Datatype: CDATA
Values: any numeric value in the chosen standard form.
Default: #IMPLIED
Note

The standard form used should be described in the <stdVals> element in the TEI header. Standard forms may be defined from scratch, or borrowed from existing practice (e.g. ‘Standard values are given in the notation defined for numeric constants in the C language.’)

Example
<num type="cardinal" value="21">twenty-one</num>
<num type="cardinal" value="1.5">1.5</num>
He stands <num type="cardinal" value="1.9">1 &middot; 90</num>m. high.
Note

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

Module Declared in file teicore2; Core tag sets: enabled when any TEI base is enabled
Class data
Data Description May contain character data and phrase-level elements.
May contain #PCDATA abbr add addSpan address alt altGrp anchor app c caesura cb certainty cl corr damage date dateRange dateStruct del delSpan distinct emph expan fLib foreign formula fs fsLib fvLib fw gap geogName gloss handShift hi index interp interpGrp join joinGrp lang lb link linkGrp m measure mentioned milestone name num oRef oVar orgName orig pRef pVar pb persName phr placeName ptr ref reg respons restore rs s seg sic soCalled space span spanGrp supplied term time timeRange timeStruct timeline title unclear w xptr xref
May occur within ab abbr activity actor add addName addrLine admin affiliation author authority bibl biblScope birth bloc byline camera caption case castItem catDesc cell channel cl classCode closer colloc constitution corr country creation damage date dateRange def del derivation descrip dictScrap distance distinct distributor docAuthor docDate docEdition docImprint domain edition editor education emph entryFree etym expan extent factuality figDesc firstLang foreName foreign form funder fw gen genName gloss gram gramGrp head headItem headLabel hi hyph imprimatur interaction item itype l label lang langKnown language lbl lem locale measure meeting mentioned mood name nameLink note num number occasion occupation opener orgDivn orgName orgTitle orgType orig orth otherForm p per persName phr placeName pos preparedness principal pron pubPlace publisher purpose q quote rdg re ref reg region rendition residence resp restore role roleDesc roleName rs s salute seg sense settlement sic signed soCalled socecStatus sound speaker sponsor stage street stress subc supplied surname syll symbol tagUsage tech term time timeRange title titlePart tns tr trailer trans u unclear usg view wit witDetail witness writing xr xref
Declaration
<!ELEMENT num %om.RR;  %phrase.seq;> 
<!ATTLIST num  
      %a.global;
      type CDATA #IMPLIED
      value CDATA #IMPLIED>
See further 6.4.3 Numbers and Measures

Up: 35 Elements