<unitDef>

<unitDef> (unit definition) contains descriptive information related to a specific unit of measurement. [2.3.9 The Unit Declaration]
組件 header — The TEI Header
屬性 att.global (@xml:id, @n, @xml:lang, @xml:base, @xml:space) (att.global.rendition (@rend, @style, @rendition)) (att.global.linking (@corresp, @synch, @sameAs, @copyOf, @next, @prev, @exclude, @select)) (att.global.analytic (@ana)) (att.global.facs (@facs)) (att.global.change (@change)) (att.global.responsibility (@cert, @resp)) (att.global.source (@source)) att.datable (@calendar, @period) (att.datable.w3c (@when, @notBefore, @notAfter, @from, @to)) (att.datable.iso (@when-iso, @notBefore-iso, @notAfter-iso, @from-iso, @to-iso)) (att.datable.custom (@when-custom, @notBefore-custom, @notAfter-custom, @from-custom, @to-custom, @datingPoint, @datingMethod)) att.canonical (@key, @ref) att.typed (@type, @subtype)
可包含在於
header: unitDecl
可包含
例子
<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>
宣告
<rng:element name="unitDef">
 <rng:ref name="att.global.attributes"/>
 <rng:ref name="att.global.rendition.attributes"/>
 <rng:ref name="att.global.linking.attributes"/>
 <rng:ref name="att.global.analytic.attributes"/>
 <rng:ref name="att.global.facs.attributes"/>
 <rng:ref name="att.global.change.attributes"/>
 <rng:ref name="att.global.responsibility.attributes"/>
 <rng:ref name="att.global.source.attributes"/>
 <rng:ref name="att.datable.attributes"/>
 <rng:ref name="att.datable.w3c.attributes"/>
 <rng:ref name="att.datable.iso.attributes"/>
 <rng:ref name="att.datable.custom.attributes"/>
 <rng:ref name="att.canonical.attributes"/>
 <rng:ref name="att.typed.attributes"/>
 <rng:oneOrMore>
  <rng:choice>
   <rng:ref name="model.labelLike"/>
   <rng:optional>
    <rng:ref name="model.placeNamePart"/>
   </rng:optional>
   <rng:optional>
    <rng:ref name="conversion"/>
   </rng:optional>
   <rng:optional>
    <rng:ref name="unit"/>
   </rng:optional>
  </rng:choice>
 </rng:oneOrMore>
</rng:element>
element unitDef
{
   att.global.attributes,
   att.global.rendition.attributes,
   att.global.linking.attributes,
   att.global.analytic.attributes,
   att.global.facs.attributes,
   att.global.change.attributes,
   att.global.responsibility.attributes,
   att.global.source.attributes,
   att.datable.attributes,
   att.datable.w3c.attributes,
   att.datable.iso.attributes,
   att.datable.custom.attributes,
   att.canonical.attributes,
   att.typed.attributes,
   ( model.labelLike | model.placeNamePart? | conversion? | unit? )+
}