att.measurement
att.measurement provides attributes to represent a regularized or normalized measurement.
| Module | tei | ||||||||||||||||||||||||||||||
| Members | measure measureGrp | ||||||||||||||||||||||||||||||
| Attributes |
|
||||||||||||||||||||||||||||||
| Schematron |
<sch:rule context="tei:*[@unitRef]"> <sch:report test="@unit" role="info">The @unit attribute may be unnecessary when @unitRef is present.</sch:report> </sch:rule> |
||||||||||||||||||||||||||||||
| 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.
<l> So weren't you gonna buy <measure quantity="0.5" unit="gal" commodity="ice cream">half a gallon</measure>, baby</l> <l> So won't you go and buy <measure quantity="1.893" unit="L" commodity="ice cream">half a gallon</measure>, baby?</l> The unit should normally be named using the standard symbol for an SI unit (see further
http://www.bipm.org/en/publications/si-brochure/; http://physics.nist.gov/cuu/Units/). However, encoders may also specify measurements using informally defined units
such as lines or characters.
|
||||||||||||||||||||||||||||||
| Source | Github
<classSpec module="tei" type="atts" xml:id="MEASUREMENT" ident="att.measurement"> <desc>provides attributes to represent a regularized or normalized measurement.</desc> <attList> <attDef ident="unit" usage="opt"> <gloss>unit</gloss> <desc>indicates the units used for the measurement, usually using the standard symbol for the desired units.</desc> <datatype> <dataRef key="teidata.enumerated"/> </datatype> <valList type="semi"> <valItem ident="m"> <gloss>metre</gloss> <desc>SI base unit of length</desc> </valItem> <valItem ident="kg"> <gloss>kilogram</gloss> <desc>SI base unit of mass</desc> </valItem> <valItem ident="s"> <gloss>second</gloss> <desc>SI base unit of time</desc> </valItem> <valItem ident="Hz"> <gloss>hertz</gloss> <desc>SI unit of frequency</desc> </valItem> <valItem ident="Pa"> <gloss>pascal</gloss> <desc>SI unit of pressure or stress</desc> </valItem> <valItem ident="Ω"> <gloss>ohm</gloss> <desc>SI unit of electric resistance</desc> </valItem> <valItem ident="L"> <gloss>litre</gloss> <desc>1 dm³</desc> </valItem> <valItem ident="t"> <gloss>tonne</gloss> <desc>10³ kg</desc> </valItem> <valItem ident="ha"> <gloss>hectare</gloss> <desc>1 hm²</desc> </valItem> <valItem ident="Å"> <gloss>ångström</gloss> <desc>10⁻¹⁰ m</desc> </valItem> <valItem ident="mL"> <gloss>millilitre</gloss> </valItem> <valItem ident="cm"> <gloss>centimetre</gloss> </valItem> <valItem ident="dB"> <gloss>decibel</gloss> <desc>see remarks, below</desc> </valItem> <valItem ident="kbit"> <gloss>kilobit</gloss> <desc>10³ or 1000 bits</desc> </valItem> <valItem ident="Kibit"> <gloss>kibibit</gloss> <desc>2¹⁰ or 1024 bits</desc> </valItem> <valItem ident="kB"> <gloss>kilobyte</gloss> <desc>10³ or 1000 bytes</desc> </valItem> <valItem ident="KiB"> <gloss>kibibyte</gloss> <desc>2¹⁰ or 1024 bytes</desc> </valItem> <valItem ident="MB"> <gloss>megabyte</gloss> <desc>10⁶ or 1 000 000 bytes</desc> </valItem> <valItem ident="MiB"> <gloss>mebibyte</gloss> <desc>2²⁰ or 1 048 576 bytes</desc> </valItem> </valList> </attDef> <attDef ident="unitRef" usage="opt"> <desc>points to a unique identifier stored in the <att>xml:id</att> of a <gi>unitDef</gi> element that defines a unit of measure.</desc> <datatype maxOccurs="1"> <dataRef key="teidata.pointer"/> </datatype> </attDef> <attDef ident="quantity" usage="opt"> <gloss>quantity</gloss> <desc>specifies the number of the specified units that comprise the measurement</desc> <datatype> <dataRef key="teidata.numeric"/> </datatype> </attDef> <attDef ident="commodity" usage="opt"> <gloss>commodity</gloss> <desc>indicates the substance that is being measured</desc> <datatype maxOccurs="unbounded"> <dataRef key="teidata.word"/> </datatype> </attDef> </attList> </classSpec> |