<conversion>

<conversion> defines how to calculate one unit of measure in terms of another. [2.3.9 The Unit Declaration]
Module header — The TEI Header
Attributs
calendar⚓︎ indique le système ou le calendrier auquel appartient la date exprimée dans le contenu de l'élément.
Deprecated This feature will be withdrawn after 2024-11-11
Statut Optionel
Type de données 1–∞ occurrences de teidata.pointer séparé par un espace
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>
fromUnit⚓︎ indicates a source unit of measure that is to be converted into another unit indicated in toUnit.
Statut Requis
Type de données teidata.pointer
toUnit⚓︎ the target unit of measurement for a conversion from a source unit referenced in fromUnit.
Statut Requis
Type de données teidata.pointer
Contenu dans
header: unitDef
Peut contenir Elément vide
Note

The conversion element is designed to store information about converting from one unit of measurement to another. The formula attribute holds an XPath expression that indicates how the measurement system in fromUnit is converted to the system in toUnit. Do not confuse the usage of the dating attributes (from and to) in the examples with the attributes (fromUnit and toUnit) designed to reference units of measure.

Exemple
<conversion fromUnit="#shilling"
 toUnit="#penceformula="$fromUnit * 12from="1707"
 to="1971"/>
Exemple
<conversion fromUnit="#pound"
 toUnit="#shillingformula="$fromUnit * 20from="1701"
 to="1971"/>
Modèle de contenu
<content>
 <empty/>
</content>
Schéma Declaration
<rng:element name="conversion">
 <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.formula.attributes"/>
 <rng:ref name="att.locatable.attributes"/>
 <rng:optional>
  <rng:attribute name="calendar">
   <rng:list>
    <rng:oneOrMore>
     <rng:ref name="teidata.pointer"/>
    </rng:oneOrMore>
   </rng:list>
  </rng:attribute>
 </rng:optional>
 <rng:attribute name="fromUnit">
  <rng:ref name="teidata.pointer"/>
 </rng:attribute>
 <rng:attribute name="toUnit">
  <rng:ref name="teidata.pointer"/>
 </rng:attribute>
 <rng:empty/>
</rng:element>
element conversion
{
   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.formula.attributes,
   att.locatable.attributes,
   attribute calendar { list { teidata.pointer+ } }?,
   attribute fromUnit { teidata.pointer },
   attribute toUnit { teidata.pointer },
   empty
}