Is there a reason why the Quantity and Value elements which seem to be numerical, include a data type element and a string value element, instead of an xsd:decimal or xsd:double?
The value associated with Quantity and Value has given us some problems. XSD does not seem defined to allow the definition of the type of element in the document itself (say, through some meta-data) instead of for all documents. While the value of Quantity will almost always be numeric, it may not always be decimal. The value of a Value may have even more flexibility, ranging from enumerations to actual strings. We felt that restricting the type of these elements would restrict the use of the schemas. But, since the type of the Quality and Value is defined in the “DataType” element, then a XSLT can use that element value to interpret the ValueString and QuantityString. No conversion is necessary for display purposes.