<conversion>

<conversion> defines how to calculate one unit of measure in terms of another. [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>
fromUnitindicates a source unit of measure that is to be converted into another unit indicated in toUnit.
Status Required
Datatype teidata.pointer
toUnitthe target unit of measurement for a conversion from a source unit referenced in fromUnit.
Status Required
Datatype teidata.pointer
Contained by
header: unitDef
May containEmpty element
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.

Example
<conversion fromUnit="#shilling"
 toUnit="#penceformula="$fromUnit * 12from="1707"
 to="1971"/>
Example
<conversion fromUnit="#pound"
 toUnit="#shillingformula="$fromUnit * 20from="1701"
 to="1971"/>
Content model
<content>
 <empty/>
</content>
Schema Declaration
element conversion
{
   tei_att.global.attributes,
   tei_att.datable.attributes,
   tei_att.formula.attributes,
   tei_att.locatable.attributes,
   attribute calendar { list { teidata.pointer+ } }?,
   attribute fromUnit { teidata.pointer },
   attribute toUnit { teidata.pointer },
   empty
}