<conversion>
<conversion> defines how to calculate one unit of measure in terms of another. [2.3.9 The Unit Declaration] | |||||||||||||
Módulo | header — The TEI Header | ||||||||||||
Atributos | att.global (@xml:id, @n, @xml:lang, @xml:base, @xml:space) (att.global.rendition (@rend, @style, @rendition)) (att.global.linking (@corresp, @synch, @sameAs, @copyOf, @next, @prev, @exclude, @select)) (att.global.analytic (@ana)) (att.global.facs (@facs)) (att.global.change (@change)) (att.global.responsibility (@cert, @resp)) (att.global.source (@source)) att.datable (@calendar, @period) (att.datable.w3c (@when, @notBefore, @notAfter, @from, @to)) (att.datable.iso (@when-iso, @notBefore-iso, @notAfter-iso, @from-iso, @to-iso)) (att.datable.custom (@when-custom, @notBefore-custom, @notAfter-custom, @from-custom, @to-custom, @datingPoint, @datingMethod)) att.formula (@formula) att.locatable (@where)
|
||||||||||||
Contenido en |
header: unitDef
|
||||||||||||
Puede contener | Elemento vacío | ||||||||||||
Nota |
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. |
||||||||||||
Ejemplo |
<conversion fromUnit="#shilling"
toUnit="#pence" formula="$fromUnit * 12" from="1707" to="1971"/> |
||||||||||||
Ejemplo |
<conversion fromUnit="#pound"
toUnit="#shilling" formula="$fromUnit * 20" from="1701" to="1971"/> |
||||||||||||
Content model |
<content> |
||||||||||||
Declaración |
<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 fromUnit { teidata.pointer }, attribute toUnit { teidata.pointer }, empty } |