An element that is defined as a canonicalQuantityType will have the following subelements:
This datatype was developed to test alternative methods of capturing quantities and their units of measure. It is expected that this datatype will change with time.
<xsd:complexType name="canonicalQuantityType">
<xsd:sequence>
<xsd:element name="value" type="xsd:double"/>
<xsd:choice>
<xsd:element name="UnitDefinition" type="unitMod"/>
<xsd:element name="unitRef">
<xsd:complexType>
<xsd:attribute name="refTo" type="xsd:uriReference" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="firstValue" type="canonicalQuantityType"/> <xsd:element name="secondValue" type="canonicalQuantityType"/>
<firstValue>
<value>27762.335</value>
<unitRef refTo="#m"/>
</firstValue>
<secondValue>
<value>9662.401</value>
<UnitDefinition uid="ft" symbol="ft">
<name>International foot</name>
<ConversionToBaseUnit baseUnit="#m">
<factor>.3048</factor>
</ConversionToBaseUnit>
</UnitDefinition>
</secondValue>