<xsd:complexType name="MeasurementType"> <xsd:simpleContent> <xsd:extension base="xsd:decimal"> <xsd:attribute name="unit" type="MeasurementUnitsType" use="required"/> </xsd:extension> </xsd:simpleContent> </xsd:complexType>
<xsd:attribute name="unit" type="MeasurementUnitsType" use="required"/>