<unitDef>

<unitDef> (unit definition) contains descriptive information related to a specific unit of measurement. [2.3.9. The Unit Declaration]
Moduleheader
Attributes
calendarindicates one or more systems or calendars to which the date represented by the content of this element belongs.
Deprecatedwill be removed on 2024-11-11
Status Optional
Datatype 1–∞ occurrences of teidata.pointer separated by whitespace
Schematron

<sch:rule context="tei:*[@calendar]">
<sch:assert test="string-length( normalize-space(.) ) gt 0"> @calendar indicates one or more
systems or calendars to which the date represented by the content of this element belongs,
but this <sch:name/> element has no textual content.</sch:assert>
</sch:rule>
Contained by
header: unitDecl
May contain
Example
<unitDecl>
 <unitDef xml:id="pechystype="length">
  <label>πῆχυς</label>
  <placeName ref="#athens"/>
  <conversion fromUnit="#daktylos"
   toUnit="#pechysformula="$fromUnit div 24"/>

  <desc>Equivalent to a cubit or 24 daktyloi.</desc>
 </unitDef>
 <unitDef xml:id="daktylostype="length">
  <label>δάκτυλος</label>
  <placeName ref="#athens"/>
  <desc>A basic unit of length equivalent to one finger (or the size of a thumb) in ancient Greece.</desc>
 </unitDef>
</unitDecl>
Content model
<content>
 <alternate minOccurs="1"
  maxOccurs="unbounded">

  <classRef key="model.labelLike"
   minOccurs="1"/>

  <classRef key="model.placeNamePart"
   minOccurs="0"/>

  <elementRef key="conversion"
   minOccurs="0"/>

  <elementRef key="unitminOccurs="0"/>
 </alternate>
</content>
Schema Declaration
element unitDef
{
   tei_att.global.attributes,
   tei_att.datable.attributes,
   tei_att.canonical.attributes,
   tei_att.typed.attributes,
   attribute calendar { list { teidata.pointer+ } }?,
   (
      tei_model.labelLike
    | tei_model.placeNamePart?
    | tei_conversion?
    | tei_unit?
   )+
}