<conversion>
<conversion> defines how to calculate one unit of measure in terms of another. [2.3.9. The Unit Declaration] | |||||||||||||||||||||||
Module | header | ||||||||||||||||||||||
Attributes |
| ||||||||||||||||||||||
Contained by | header: unitDef | ||||||||||||||||||||||
May contain | Empty 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="#pence" formula="$fromUnit * 12" from="1707" to="1971"/> | ||||||||||||||||||||||
Example | <conversion fromUnit="#pound" toUnit="#shilling" formula="$fromUnit * 20" from="1701" to="1971"/> | ||||||||||||||||||||||
Content model | <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 } |