[eml-dev] [Bug 1019] - altitudeUnits in geographicCoverage should use eml-unitDictionary definitions

bugzilla-daemon at ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Fri Oct 10 15:59:43 PDT 2008


http://bugzilla.ecoinformatics.org/show_bug.cgi?id=1019





------- Comment #5 from mob at icess.ucsb.edu  2008-10-10 15:59 -------
Here is an example in which StandardUnitDictionary is a simpleType which is a
union of other simpleTypes. This way, altitudeUnit would be of
type=LengthUnitDictionary (in 2.1.0), and attributes are
type=StandardUnitDitionary (as they are in 2.0.1). The big list of units can be
broken up into various Types as necessary, and then grouped together with
xs:union. The Types used in the spatial schemas could be kept here as well.
These definitions should not affect unit-elements that are already typed. 

<xs:simpleType name="LengthUnitDictionary">
  <xs:restriction base="xs:string">
    <xs:enumeration value="meter"/>
    <xs:enumeration value="nanometer"/>
    ...etc
  </xs:restriction>
</xs:simpleType>

<xs:simpleType name="MassUnitDictionary">
  <xs:restriction base="xs:string">
    <xs:enumeration value="gram"/>
    <xs:enumeration value="milligram"/>
    ... etc
  </xs:restriction>
</xs:simpleType>

<xs:simpleType name="StandardUnitDictionary">
<xs:union memberTypes="unit:MassUnitDictionary unit:LengthUnitDictionary"/>
</xs:simpleType>


More information about the Eml-dev mailing list