Skip to content

<conversion>

defines how to calculate one unit of measure in terms of another.

Module headerHDUDECL

Attributes

@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

Classes and content

May contain
empty
Contained by

header

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.

Examples

<conversion fromUnit="#shilling" toUnit="#pence" formula="$fromUnit * 12" from="1707" to="1971"/>
<conversion fromUnit="#pound" toUnit="#shilling" formula="$fromUnit * 20" from="1701" to="1971"/>

Content model

<content>
  <empty/>
</content>