att.measurement

att.measurement provides attributes to represent a regularized or normalized measurement.
Module tei — 1 The TEI Infrastructure
Members measure measureGrp
Attributes In addition to global attributes
unit indicates the units used for the measurement, usually using the standard symbol for the desired units.
Status Optional
Datatype

<rng:ref name="data.enumerated"/>
data.enumerated
Suggested values include:
m
(metre) SI base unit of length
kg
(kilogram) SI base unit of mass
s
(second) SI base unit of time
Hz
(hertz) SI unit of frequency
Pa
(pascal) SI unit of pressure or stress
(ohm) SI unit of electric resistance
L
(litre) 1 dm³
t
(tonne) 10³ kg
ha
(hectare) 1 hm²
(ångström) 10⁻¹⁰ m
mL
(millilitre)
cm
(centimetre)
dB
(decibel) see remarks, below
kbit
(kilobit) 10³ or 1000 bits
Kibit
(kibibit) 2¹⁰ or 1024 bits
kB
(kilobyte) 10³ or 1000 bytes
KiB
(kibibyte) 2¹⁰ or 1024 bytes
MB
(megabyte) 10⁶ or 1 000 000 bytes
MiB
(mebibyte) 2²⁰ or 1 048 576 bytes
Note
If the measurement being represented is not expressed in a particular unit, but rather is a number of discrete items, the unit count should be used, or the unit attribute may be left unspecified.
Wherever appropriate, a recognised SI unit name should be used (see further http://www.bipm.org/en/si/; http://physics.nist.gov/cuu/Units/). The list above is indicative rather than exhaustive.
quantity specifies the number of the specified units that comprise the measurement
Status Optional
Datatype

<rng:ref name="data.numeric"/>
data.numeric
commodity indicates the substance that is being measured
Status Optional
Datatype 1–∞ occurrences of 

<rng:ref name="data.word"/>
data.word
separated by whitespace
Note
In general, when the commodity is made of discrete entities, the plural form should be used, even when the measurement is of only one of them.
Note
This attribute class provides a triplet of attributes that may be used either to regularize the values of the measurement being encoded, or to normalize them with respect to a standard measurement system.

<!-- regularization:--><l>So weren't you gonna buy <measure quantity="0.5" unit="gal" commodity="ice cream">half a gallon</measure>, baby</l>
<!-- normalization: -->
<l>So won't you go and buy <measure quantity="1.893" unit="L" commodity="ice cream">half a gallon</measure>,
baby?</l>
Note
The unit should normally be named using the standard abbreviation for an SI unit (see further http://www.bipm.org/en/si/; http://physics.nist.gov/cuu/Units/). However, encoders may also specify measurements using informally defined units such as lines or characters.