<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 |
|
||||||||||||||||||||||
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="#pence" formula="$fromUnit * 12" from="1707" to="1971"/> |
||||||||||||||||||||||
Exemple |
<conversion fromUnit="#pound"
toUnit="#shilling" formula="$fromUnit * 20" from="1701" to="1971"/> |
||||||||||||||||||||||
Modèle de contenu |
<content> |
||||||||||||||||||||||
Schéma Declaration |
<rng:element name="conversion"> 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 } |