The quantityType datatype will contain the numeric value as the value of the element, and a reference to a unit of measure as an attribute. It is intended as a compact way to bundle a value and its unit of measure together.
This datatype was developed to support the Epicentre quantity data type. Its intended usage is shown in the PEF quantity element document. Usage as a useful datatype is shown in the following sample usage schema and sample XML.
<xsd:complexType name="quantityType">
<xsd:simpleContent>
<xsd:extension base="xsd:double">
<xsd:attribute name="unit" type="xsd:uriReference" use="required"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:element name="someValue" type="quantityType"/>
<someValue uom="#m">27762.335</someValue>