<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <!-- ==================basicTypes.xsd begin sc================== -->
  <!-- ==================basicTypes.xsd begin sc================== -->
  <!-- ==================basicTypes.xsd begin sc================== -->
  <!-- ########################################################################### -->
  <!-- ########################################################################### -->
  <!-- ================================== Classes ================================= -->
  <!-- =========================== Date & DateTime ================================= -->
  <!--The basic types Date  and DateTime cannot be correctly generated as simple type. The simple types (xs:date and xs:dateTime) of the W3C XML schema  are not compatible with the ISO TC211 19103 diagram (problem of valid inheritance).-->
  <xs:element name="DateTime" type="xs:dateTime"/>
  <!--As the W3C simple type structure is in conflict with 19103, the inheritance between Date and DateTime has been removed (DateTime is no longer in the substitutionGroup of Date).-->
  <!-- ........................................................................ -->
  <!-- =========================================================================== -->
  <xs:simpleType name="Date_Type">
    <xs:union memberTypes="xs:date xs:gYearMonth xs:gYear"/>
  </xs:simpleType>
  <!-- ........................................................................ -->
  <xs:element name="Date" type="Date_Type" nillable="true"/>
  <!-- ........................................................................ -->
  <xs:complexType name="Date_PropertyType">
    <xs:choice>
      <xs:element ref="Date"/>
      <xs:element ref="DateTime"/>
    </xs:choice>
  </xs:complexType>
  <!-- ============================= CharacterString ================================ -->
  <xs:element name="CharacterString" type="xs:string"/>
  <!-- ........................................................................ -->
  <xs:complexType name="CharacterString_PropertyType">
    <xs:sequence>
      <xs:element ref="CharacterString"/>
    </xs:sequence>
  </xs:complexType>
  <!-- ........................................................................ -->
  <xs:element name="_UnitOfMeasure" type="RegisterValue_Type" substitutionGroup="CharacterString"/>
  <!-- ........................................................................ -->
  <xs:complexType name="_UnitOfMeasure_PropertyType">
    <xs:sequence>
      <xs:element ref="_UnitOfMeasure"/>
    </xs:sequence>
  </xs:complexType>
  <!-- ============================= Real ================================ -->
  <xs:element name="positiveReal" type="positiveReal_Type" substitutionGroup="Real"/>
  <xs:simpleType name="positiveReal_Type">
    <xs:restriction base="xs:double">
      <xs:minExclusive value="0.0"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="positiveReal_PropertyType">
    <xs:sequence>
      <xs:element ref="positiveReal"/>
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Real" type="xs:double"/>
  <!-- ........................................................................ -->
  <xs:complexType name="Real_PropertyType">
    <xs:sequence>
      <xs:element ref="Real"/>
    </xs:sequence>
  </xs:complexType>
  <!-- ........................................................................ -->
  <xs:element name="UomLength" type="RegisterValue_Type"/>
  <!-- ........................................................................ -->
  <xs:complexType name="UomLength_PropertyType">
    <xs:sequence>
      <xs:element ref="UomLength"/>
    </xs:sequence>
  </xs:complexType>
  <!-- ==================basicTypes.xsd end sc================== -->
  <!-- ==================basicTypes.xsd end sc================== -->
  <!-- ==================basicTypes.xsd end sc================== -->
  <!-- ==================scXMLbase.xsd begin sc================== -->
  <!-- ==================scXMLbase.xsd begin sc================== -->
  <!-- ==================scXMLbase.xsd begin sc================== -->
  <!-- ========================= IM_Object: abstract Root ============================= -->
  <!--================= Type ===================-->
  <xs:simpleType name="approximateLatitude_Type">
    <xs:restriction base="xs:decimal">
      <xs:minInclusive value="-90.000"/>
      <xs:maxInclusive value="90.000"/>
 <!--     <xs:fractionDigits value="2"/>-->
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="approximateLatitude" type="approximateLatitude_Type"/>
  <!--====================================-->
  <xs:complexType name="approximateLatitude_PropertyType">
    <xs:sequence>
      <xs:element ref="approximateLatitude"/>
    </xs:sequence>
  </xs:complexType>
  <!--====================================-->
  <xs:simpleType name="approximateLongitude_Type">
    <xs:restriction base="xs:decimal">
      <xs:minInclusive value="-180.0"/>
      <xs:maxInclusive value="360.0"/>
   <!--   <xs:maxInclusive value="180.0"/>-->
   <!--   <xs:fractionDigits value="2"/>-->
    </xs:restriction>
  </xs:simpleType>
  <!--====================================-->
  <xs:element name="approximateLongitude" type="approximateLongitude_Type"/>
  <!--====================================-->
  <xs:complexType name="approximateLongitude_PropertyType">
    <xs:sequence>
      <xs:element ref="approximateLongitude"/>
    </xs:sequence>
  </xs:complexType>
  <!--====================================-->
  <xs:complexType name="RegisterValue_Type">
    <xs:simpleContent>
      <xs:extension base="xs:string">
  <!--      <xs:attribute name="codeSpace" type="xs:string" use="optional"/>
        <xs:attributeGroup ref="xlink:simpleLink"/>-->
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <xs:complexType name="_Object_Type" abstract="true">
    <xs:sequence/>
    <xs:attributeGroup ref="ObjectIdentification"/>
  </xs:complexType>
  <!-- ========================================================================== -->
  <!-- ====================== Identification of a resource ============================== -->
  <xs:attributeGroup name="ObjectIdentification">
    <xs:attribute name="id" type="xs:ID" use="optional"/>
    <xs:attribute name="uuid" type="xs:string" use="optional"/>
  </xs:attributeGroup>
  <!-- ==================scXMLbase.xsd end sc================== -->
  <!-- ==================scXMLbase.xsd end sc================== -->
  <!-- ==================scXMLbase.xsd end sc================== -->
  <!-- ==================maintenance.xsd begin sm================== -->
  <!-- ==================maintenance.xsd begin sm================== -->
  <!-- ==================maintenance.xsd begin sm================== -->
  <!--  =========================================================================== -->
  <xs:complexType name="MD_ScopeCode_Type">
    <xs:simpleContent>
      <xs:extension base="xs:string">
        <xs:attribute name="codeList" type="xs:anyURI" use="required"/>
        <xs:attribute name="codeListValue" type="xs:string" use="required"/>
        <xs:attribute name="codeSpace" type="xs:string" use="optional"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <!-- ........................................................................ -->
  <xs:element name="MD_ScopeCode" type="MD_ScopeCode_Type" substitutionGroup="CharacterString"/>
  <!-- ........................................................................ -->
  <xs:complexType name="MD_ScopeCode_PropertyType">
    <xs:sequence>
      <xs:element ref="MD_ScopeCode"/>
    </xs:sequence>
  </xs:complexType>
  <!-- ==================maintenance.xsd end sm================== -->
  <!-- ==================maintenance.xsd end sm================== -->
  <!-- ==================maintenance.xsd end sm================== -->
  <!-- ==================distribution.xsd begin sm================== -->
  <!-- ==================distribution.xsd begin sm================== -->
  <!-- ==================distribution.xsd begin sm================== -->
  <!--  =========================================================================== -->
  <!--.......................................................................-->
  <xs:element name="MD_StandardOrderProcess" type="MD_StandardOrderProcess_Type"/>
  <!--.......................................................................-->
  <xs:complexType name="MD_StandardOrderProcess_PropertyType">
    <xs:sequence>
      <xs:choice>
        <xs:element ref="MD_StandardOrderProcess"/>
  <!--      <xs:element ref="scXML:Reference"/>-->
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
  <!--  =========================================================================== -->
  <xs:complexType name="MD_StandardOrderProcess_Type">
    <xs:annotation>
      <xs:documentation>Common ways in which the dataset may be obtained or received, and related ins
tructions and fee information</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="_Object_Type">
        <xs:sequence>
          <xs:element name="fees" type="CharacterString_PropertyType" minOccurs="0"/>
  <!--        <xs:element name="plannedAvailableDateTime" type="scXML:DateTime_PropertyType" minOccurs="0"/>
          <xs:element name="orderingInstructions" type="scXML:CharacterString_PropertyType" minOccurs="0"/>
          <xs:element name="turnaround" type="scXML:CharacterString_PropertyType" minOccurs="0"/>-->
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <!--.......................................................................-->  
  <xs:complexType name="MD_DigitalTransferOptions_Type">
    <xs:annotation>
      <xs:documentation>Technical means and media by which a dataset is obtained from the 
distributor</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="scXML:_Object_Type">
        <xs:sequence>
          <xs:element name="unitsOfDistribution" type="CharacterString_PropertyType" minOccurs="0"/>
          <xs:element name="transferSize" type="positiveReal_PropertyType" minOccurs="0"/>
          <xs:element name="onLine" type="CI_OnlineResource_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
  <!--        <xs:element name="offLine" type="smXML:MD_Medium_PropertyType" minOccurs="0"/>-->
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <!--.......................................................................-->
  <xs:element name="MD_DigitalTransferOptions" type="MD_DigitalTransferOptions_Type"/>
  <!--.......................................................................-->
  <xs:complexType name="MD_DigitalTransferOptions_PropertyType">
    <xs:sequence>
      <xs:choice>
        <xs:element ref="MD_DigitalTransferOptions"/>
  <!--      <xs:element ref="scXML:Reference"/>-->
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
  <!--  =========================================================================== -->
  <xs:complexType name="MD_Distributor_Type">
    <xs:annotation>
      <xs:documentation>Information about the distributor</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="_Object_Type">
        <xs:sequence>
          <xs:element name="distributorContact" type="CI_ResponsibleParty_PropertyType"/>
          <xs:element name="distributionOrderProcess" type="MD_StandardOrderProcess_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
          <xs:element name="distributorTransferOptions" type="MD_DigitalTransferOptions_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
    <!--      <xs:element name="distributorFormat" type="smXML:MD_Format_PropertyType" minOccurs="0" maxOccurs="unbounded"/>-->
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <!--.......................................................................-->
  <xs:element name="MD_Distributor" type="MD_Distributor_Type"/>
  <!--.......................................................................-->
  <xs:complexType name="MD_Distributor_PropertyType">
    <xs:sequence>
      <xs:choice>
        <xs:element ref="MD_Distributor"/>
   <!--     <xs:element ref="scXML:Reference"/>-->
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
  <!--.......................................................................-->
  <xs:complexType name="MD_Distribution_Type">
    <xs:annotation>
      <xs:documentation>Information about the distributor of and options for obtaining the dataset</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="_Object_Type">
        <xs:sequence>
  <!--        <xs:element name="distributionFormat" type="MD_Format_PropertyType" minOccurs="0" 

maxOccurs="unbounded"/>-->
          <xs:element name="distributor" type="MD_Distributor_PropertyType" minOccurs="0" maxOccurs="unbounded"/> 
  <!--        <xs:element name="transferOptions" type="MD_DigitalTransferOptions_PropertyType" minOccurs="0" 
maxOccurs="unbounded"/>-->
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <!--.......................................................................-->
  <xs:element name="MD_Distribution" type="MD_Distribution_Type">
    <xs:annotation>
      <xs:documentation>
   ***   count (distributionFormat + distributorFormat) &gt; 0
</xs:documentation>
    </xs:annotation>
  </xs:element>
  <!--.......................................................................-->
  <xs:complexType name="MD_Distribution_PropertyType">
    <xs:sequence>
      <xs:choice>
        <xs:element ref="MD_Distribution"/>
  <!--      <xs:element ref="scXML:Reference"/>-->
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
  <!--  =========================================================================== -->
  <xs:complexType name="MD_Format_Type">
    <xs:annotation>
      <xs:documentation>Description of the form of the data to be distributed</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="_Object_Type">
        <xs:sequence>
          <xs:element name="name" type="CharacterString_PropertyType"/>
    <!--      <xs:element name="version" type="CharacterString_PropertyType"/>-->
    <!--      <xs:element name="amendmentNumber" type="scXML:CharacterString_PropertyType" 
minOccurs="0"/> -->
          <xs:element name="specification" type="CharacterString_PropertyType" minOccurs="0"/>
    <!--      <xs:element name="fileDecompressionTechnique" 
type="scXML:CharacterString_PropertyType" minOccurs="0"/>
          <xs:element name="formatDistributor" type="smXML:MD_Distributor_PropertyType" 
minOccurs="0" maxOccurs="unbounded"/> -->
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <!--.......................................................................-->
  <xs:element name="MD_Format" type="MD_Format_Type">
    <xs:annotation>
      <xs:documentation>
   ***   count (distributionFormat + distributorFormat) &gt; 0
</xs:documentation>
    </xs:annotation>
  </xs:element>
  <!--.......................................................................-->
  <xs:complexType name="MD_Format_PropertyType">
    <xs:sequence>
      <xs:choice>
        <xs:element ref="MD_Format"/>
 <!--       <xs:element ref="scXML:Reference"/> -->
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
  <!-- ==================distribution.xsd end sm================== -->
  <!-- ==================distribution.xsd end sm================== -->
  <!-- ==================distribution.xsd end sm================== -->
  <!-- ==================citation.xsd begin sm================== -->
  <!-- ==================citation.xsd begin sm================== -->
  <!-- ==================citation.xsd begin sm================== -->
  <!-- ================== Classes  ================== -->
  <xs:complexType name="CI_RoleCode_Type">
    <xs:simpleContent>
      <xs:extension base="xs:string">
        <xs:attribute name="codeList" type="xs:anyURI" use="required"/>
        <xs:attribute name="codeListValue" type="xs:string" use="required"/>
        <xs:attribute name="codeSpace" type="xs:string" use="optional"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <!-- ........................................................................ -->
  <xs:element name="CI_RoleCode" type="CI_RoleCode_Type" substitutionGroup="CharacterString"/>
  <!-- ........................................................................ -->
  <xs:complexType name="CI_RoleCode_PropertyType">
    <xs:sequence>
      <xs:element ref="CI_RoleCode"/>
    </xs:sequence>
  </xs:complexType>
  <!-- ........................................................................ -->
  <xs:complexType name="CI_ResponsibleParty_Type">
    <xs:annotation>
      <xs:documentation>Identification of, and means of communication with, person(s) and organisations associated with the dataset</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="_Object_Type">
        <xs:sequence>
          <xs:element name="individualName" type="CharacterString_PropertyType" minOccurs="0"/>
          <xs:element name="organisationName" type="CharacterString_PropertyType" minOccurs="0"/>
          <xs:element name="positionName" type="CharacterString_PropertyType" minOccurs="0"/>
          <xs:element name="contactInfo" type="CI_Contact_PropertyType" minOccurs="0"/> 
          <xs:element name="role" type="CI_RoleCode_PropertyType"/> 
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <!--.......................................................................-->
  <xs:element name="CI_ResponsibleParty" type="CI_ResponsibleParty_Type">
    <xs:annotation>
      <xs:documentation>
   ***   count of (individualName + organisationName + positionName) &gt; 0
</xs:documentation>
    </xs:annotation>
  </xs:element>
  <!--.......................................................................-->
  <xs:complexType name="CI_ResponsibleParty_PropertyType">
    <xs:sequence>
      <xs:choice>
        <xs:element ref="CI_ResponsibleParty"/>
  <!--  <xs:element ref="scXML:Reference"/>   -->
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
<!--  =========================================================================== -->
  <xs:complexType name="CI_DateTypeCode_Type">
    <xs:simpleContent>
      <xs:extension base="xs:string">
        <xs:attribute name="codeList" type="xs:anyURI" use="required"/>
        <xs:attribute name="codeListValue" type="xs:string" use="required"/>
        <xs:attribute name="codeSpace" type="xs:string" use="optional"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <!-- ........................................................................ -->
  <xs:element name="CI_DateTypeCode" type="CI_DateTypeCode_Type" substitutionGroup="CharacterString"/>
  <!-- ........................................................................ -->
  <xs:complexType name="CI_DateTypeCode_PropertyType">
    <xs:sequence>
      <xs:element ref="CI_DateTypeCode"/>
    </xs:sequence>
  </xs:complexType>
  <!--  =========================================================================== -->
  <xs:complexType name="CI_Date_Type">
    <xs:annotation>
      <xs:documentation/>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="_Object_Type">
        <xs:sequence>
          <xs:element name="date" type="Date_PropertyType"/>
          <xs:element name="dateType" type="CI_DateTypeCode_PropertyType"/> 
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <!--.......................................................................-->
  <xs:element name="CI_Date" type="CI_Date_Type"/>
  <!--.......................................................................-->
  <xs:complexType name="CI_Date_PropertyType">
    <xs:sequence>
      <xs:choice>
        <xs:element ref="CI_Date"/>
  <!--      <xs:element ref="scXML:Reference"/> -->
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
  <!--  =========================================================================== -->
  <xs:complexType name="CI_Address_Type">
    <xs:annotation>
      <xs:documentation> Location of the responsible individual or organisation</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="_Object_Type">
        <xs:sequence>
          <xs:element name="deliveryPoint" type="CharacterString_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
          <xs:element name="city" type="CharacterString_PropertyType" minOccurs="0"/>
          <xs:element name="administrativeArea" type="CharacterString_PropertyType" minOccurs="0"/>
          <xs:element name="postalCode" type="CharacterString_PropertyType" minOccurs="0"/>
          <xs:element name="country" type="CharacterString_PropertyType" minOccurs="0"/>
          <xs:element name="electronicMailAddress" type="CharacterString_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <!--.......................................................................-->
  <xs:element name="CI_Address" type="CI_Address_Type"/>
  <!--.......................................................................-->
  <xs:complexType name="CI_Address_PropertyType">
    <xs:sequence>
      <xs:choice>
        <xs:element ref="CI_Address"/>
  <!--      <xs:element ref="scXML:Reference"/> -->
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
  <!--  =========================================================================== -->
  <xs:element name="URL" type="xs:anyURI"/>
  <!-- ........................................................................ -->
  <xs:complexType name="URL_PropertyType">
    <xs:sequence>
      <xs:element ref="URL"/>
    </xs:sequence>
  </xs:complexType>
   <!--  =========================================================================== -->
  <xs:complexType name="CI_OnlineResource_Type">
    <xs:annotation>
      <xs:documentation>Information about online sources from which the dataset, specification, or comm
unity profile name and extended metadata elements can be obtained.</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="_Object_Type">
        <xs:sequence>
          <xs:element name="linkage" type="URL_PropertyType"/>
          <xs:element name="protocol" type="CharacterString_PropertyType" minOccurs="0"/>
          <xs:element name="applicationProfile" type="CharacterString_PropertyType" minOccurs="0"/>
          <xs:element name="name" type="CharacterString_PropertyType" minOccurs="0"/>
          <xs:element name="description" type="CharacterString_PropertyType" minOccurs="0"/>
 <!--         <xs:element name="function" type="CI_OnLineFunctionCode_PropertyType" minOccurs="0"/> --> 
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <!--.......................................................................-->
  <xs:element name="CI_OnlineResource" type="CI_OnlineResource_Type"/>
  <!--.......................................................................-->
  <xs:complexType name="CI_OnlineResource_PropertyType">
    <xs:sequence>
      <xs:choice>
        <xs:element ref="CI_OnlineResource"/>
  <!--      <xs:element ref="scXML:Reference"/>-->
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
  <!--  =========================================================================== -->
  <!--  =========================================================================== -->
  <xs:complexType name="CI_Telephone_Type">
    <xs:annotation>
      <xs:documentation> Telephone numbers for contacting the responsible individual or 
organisation</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="_Object_Type">
        <xs:sequence>
          <xs:element name="voice" type="CharacterString_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
          <xs:element name="facsimile" type="CharacterString_PropertyType" minOccurs="0" maxOccurs="unbounded"/> 
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <!--.......................................................................-->
  <xs:element name="CI_Telephone" type="CI_Telephone_Type"/>
  <!--.......................................................................-->
  <xs:complexType name="CI_Telephone_PropertyType">
    <xs:sequence>
      <xs:choice>
        <xs:element ref="CI_Telephone"/>
 <!--       <xs:element ref="scXML:Reference"/> -->
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
  <!--.......................................................................-->
  <xs:complexType name="CI_Contact_Type">
    <xs:annotation>
      <xs:documentation>Information required enabling contact with the  responsible person and/or 
organisation</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="_Object_Type">
        <xs:sequence>
          <xs:element name="phone" type="CI_Telephone_PropertyType" minOccurs="0"/>
          <xs:element name="address" type="CI_Address_PropertyType" minOccurs="0"/> 
          <xs:element name="onlineResource" type="CI_OnlineResource_PropertyType" minOccurs="0"/> 
 <!--        <xs:element name="hoursOfService" type="scXML:CharacterString_PropertyType"minOccurs="0"/>
          <xs:element name="contactInstructions" type="scXML:CharacterString_PropertyType" minOccurs="0"/> -->
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <!--.......................................................................-->
  <xs:element name="CI_Contact" type="CI_Contact_Type"/>
  <!--.......................................................................-->
  <xs:complexType name="CI_Contact_PropertyType">
    <xs:sequence>
      <xs:choice>
        <xs:element ref="CI_Contact"/>
  <!--      <xs:element ref="scXML:Reference"/> -->
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
 <!--  =========================================================================== -->
  <xs:complexType name="CI_Citation_Type">
    <xs:annotation>
      <xs:documentation>Standardized resource reference</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="_Object_Type">
        <xs:sequence>
          <xs:element name="title" type="scXML:CharacterString_PropertyType"/>
          <xs:element name="alternateTitle" type="CharacterString_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
     <!-- ====================minOccurs="0" is not ISO see aggregateDataSetName =========== -->
          <xs:element name="date" type="CI_Date_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
          <xs:element name="edition" type="CharacterString_PropertyType" minOccurs="0"/>
     <!--     <xs:element name="editionDate" type="scXML:Date_PropertyType" minOccurs="0"/>
          <xs:element name="identifier" type="smXML:MD_Identifier_PropertyType" minOccurs="0" maxOccurs="unbounded"/> -->
          <xs:element name="citedResponsibleParty" type="CI_ResponsibleParty_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
     <!--     <xs:element name="presentationForm" type="smXML:CI_PresentationFormCode_PropertyType" minOccurs="0" maxOccurs
="unbounded"/>
          <xs:element name="series" type="smXML:CI_Series_PropertyType" minOccurs="0"/>-->
          <xs:element name="otherCitationDetails" type="CharacterString_PropertyType" minOccurs="0"/>
     <!--     <xs:element name="collectiveTitle" type="scXML:CharacterString_PropertyType" minOccurs="0"/>
          <xs:element name="ISBN" type="scXML:CharacterString_PropertyType" minOccurs="0"/>
          <xs:element name="ISSN" type="scXML:CharacterString_PropertyType" minOccurs="0"/> -->
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <!--.......................................................................-->
  <xs:element name="CI_Citation" type="CI_Citation_Type"/>
  <!--.......................................................................-->
  <xs:complexType name="CI_Citation_PropertyType">
    <xs:sequence>
      <xs:choice>
        <xs:element ref="CI_Citation"/>
  <!--  <xs:element ref="scXML:Reference"/> -->
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
  <!--  =========================================================================== -->
  <!-- ==================citation.xsd end sm================== -->
  <!-- ==================citation.xsd end sm================== -->
  <!-- ==================citation.xsd end sm================== -->
  <!-- ==================extent.xsd begin sm================== -->
  <!-- ==================extent.xsd begin sm================== -->
  <!-- ==================extent.xsd begin sm================== -->
  <xs:complexType name="EX_VerticalExtent_Type">
    <xs:annotation>
      <xs:documentation>Vertical domain of dataset</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="_Object_Type">
        <xs:sequence>
  <!-- ================minOccurs="0" is not ISO we need for both minimumValue and maximumValue a
  unitOfMeasure. verticalElement must be repeated in this version see example.==================== -->
          <xs:element name="minimumValue" type="Real_PropertyType" minOccurs="0"/>
          <xs:element name="maximumValue" type="Real_PropertyType" minOccurs="0"/>
          <xs:element name="unitOfMeasure" type="UomLength_PropertyType" minOccurs="0"/>
  <!--       <xs:element name="verticalDatum" type="smXML:RS_Identifier_PropertyType"/>-->
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <!--.......................................................................-->
  <xs:element name="EX_VerticalExtent" type="EX_VerticalExtent_Type"/>
  <!--.......................................................................-->
  <xs:complexType name="EX_VerticalExtent_PropertyType">
    <xs:sequence>
      <xs:choice>
        <xs:element ref="EX_VerticalExtent"/>
  <!--      <xs:element ref="scXML:Reference"/>-->
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
  <!--.......................................................................-->
  <xs:complexType name="EX_TemporalExtent_Type">
    <xs:annotation>
      <xs:documentation>Time period covered by the content of the dataset</xs:documentation>
    </xs:annotation>
  <!--    <xs:extension base="_Object_Type">-->
        <xs:sequence>
          <xs:element name="extent" type="TM_Primitive_PropertyType"/>
        </xs:sequence>
  <!--    </xs:extension>-->
  </xs:complexType>
  <!--.......................................................................-->
  <xs:element name="EX_TemporalExtent" type="EX_TemporalExtent_Type"/>
  <!--.......................................................................-->
  <xs:complexType name="EX_TemporalExtent_PropertyType">
    <xs:sequence>
      <xs:choice>
        <xs:element ref="EX_TemporalExtent"/>
   <!--     <xs:element ref="scXML:Reference"/>-->
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
  <!--  =========================================================================== -->
  <xs:complexType name="EX_GeographicBoundingBox_PropertyType">
    <xs:annotation>
      <xs:documentation> Geographic area of the entire dataset referenced to WGS 84</xs:documentation>
    </xs:annotation>
  <!--  <xs:complexContent>-->
  <!--    <xs:extension base="_EX_GeographicExtent_Type">-->
        <xs:sequence>
          <xs:element name="westBoundLongitude" type="approximateLongitude_PropertyType"/>
          <xs:element name="eastBoundLongitude" type="approximateLongitude_PropertyType"/>
          <xs:element name="southBoundLatitude" type="approximateLatitude_PropertyType"/>
          <xs:element name="northBoundLatitude" type="approximateLatitude_PropertyType"/>
        </xs:sequence>
   <!--   </xs:extension>-->
   <!-- </xs:complexContent>-->
  </xs:complexType>
  <!--.......................................................................-->
  <xs:element name="EX_GeographicBoundingBox" type="EX_GeographicBoundingBox_PropertyType"/>
  <!--.......................................................................-->
  <xs:complexType name="_EX_GeographicExtent_PropertyType">
    <xs:sequence>
      <xs:choice>
        <xs:element ref="EX_GeographicBoundingBox"/>
  <!--      <xs:element ref="scXML:Reference"/>-->
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
  <!--  =========================================================================== -->
  <xs:complexType name="EX_Extent_Type">
    <xs:annotation>
      <xs:documentation>Information about spatial, vertical, and temporal extent</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="_Object_Type">
        <xs:sequence>
          <xs:element name="description" type="CharacterString_PropertyType" minOccurs="0"/>
          <xs:element name="verticalElement" type="EX_VerticalExtent_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
          <xs:element name="temporalElement" type="EX_TemporalExtent_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
          <xs:element name="geographicElement" type="_EX_GeographicExtent_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <!--.......................................................................-->
  <xs:element name="EX_Extent" type="EX_Extent_Type">
    <xs:annotation>
      <xs:documentation>
   ***   count(description + geographicElement + temporalElement + verticalElement) &gt;0
</xs:documentation>
    </xs:annotation>
  </xs:element>
  <!--.......................................................................-->
  <xs:complexType name="EX_Extent_PropertyType">
    <xs:sequence>
      <xs:choice>
        <xs:element ref="EX_Extent"/>
  <!--      <xs:element ref="scXML:Reference"/>-->
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
  <!--  =========================================================================== -->
  <!-- ==================extent.xsd end sm================== -->
  <!-- ==================extent.xsd end sm================== -->
  <!-- ==================extent.xsd end sm================== -->
  <!-- ==================identification.xsd begin sm================== -->
  <!-- ==================identification.xsd begin sm================== -->
  <!-- ==================identification.xsd begin sm================== -->
  <!-- ================== Classes  ================== -->
  <!--  =========================================================================== -->
  <xs:complexType name="DS_InitiativeTypeCode_Type">
    <xs:simpleContent>
      <xs:extension base="xs:string">
        <xs:attribute name="codeList" type="xs:anyURI" use="required"/>
        <xs:attribute name="codeListValue" type="xs:string" use="required"/>
        <xs:attribute name="codeSpace" type="xs:string" use="optional"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <!-- ........................................................................ -->
  <xs:element name="DS_InitiativeTypeCode" type="DS_InitiativeTypeCode_Type" substitutionGroup="CharacterString"/>
  <!-- ........................................................................ -->
  <xs:complexType name="DS_InitiativeTypeCode_PropertyType">
    <xs:sequence>
      <xs:element ref="DS_InitiativeTypeCode"/>
    </xs:sequence>
  </xs:complexType>
  <!--  =========================================================================== -->
  <xs:complexType name="MD_SpatialRepresentationTypeCode_Type">
    <xs:simpleContent>
      <xs:extension base="xs:string">
        <xs:attribute name="codeList" type="xs:anyURI" use="required"/>
        <xs:attribute name="codeListValue" type="xs:string" use="required"/>
        <xs:attribute name="codeSpace" type="xs:string" use="optional"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <!-- ........................................................................ -->
  <xs:element name="MD_SpatialRepresentationTypeCode" type="MD_SpatialRepresentationTypeCode_Type" substitutionGroup="CharacterString"/>
  <!-- ........................................................................ -->
  <xs:complexType name="MD_SpatialRepresentationTypeCode_PropertyType">
    <xs:sequence>
      <xs:element ref="MD_SpatialRepresentationTypeCode"/>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="MD_TopicCategoryCode_Type">
    <xs:annotation>
      <xs:documentation>High-level geospatial data thematic classification to assist in the grouping a
nd search of available geospatial datasets</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="farming"/>
      <xs:enumeration value="biota"/>
      <xs:enumeration value="boundaries"/>
      <xs:enumeration value="climatologyMeteorologyAtmosphere"/>
      <xs:enumeration value="economy"/>
      <xs:enumeration value="elevation"/>
      <xs:enumeration value="environment"/>
      <xs:enumeration value="geoscientificInformation"/>
      <xs:enumeration value="health"/>
      <xs:enumeration value="imageryBaseMapsEarthCover"/>
      <xs:enumeration value="intelligenceMilitary"/>
      <xs:enumeration value="inlandWaters"/>
      <xs:enumeration value="location"/>
      <xs:enumeration value="oceans"/>
      <xs:enumeration value="planningCadastre"/>
      <xs:enumeration value="society"/>
      <xs:enumeration value="structure"/>
      <xs:enumeration value="transportation"/>
      <xs:enumeration value="utilitiesCommunication"/>
    </xs:restriction>
  </xs:simpleType>
  <!-- ........................................................................ -->
  <xs:element name="MD_TopicCategoryCode" type="MD_TopicCategoryCode_Type" substitutionGroup="CharacterString"/>
  <!-- ........................................................................ -->
  <xs:complexType name="MD_TopicCategoryCode_PropertyType">
    <xs:sequence>
      <xs:element ref="MD_TopicCategoryCode"/>
    </xs:sequence>
  </xs:complexType>
  <!--  =========================================================================== -->
  <xs:complexType name="MD_DataIdentification_Type">
    <xs:annotation>
      <xs:documentation/>
    </xs:annotation>
<!--    <xs:complexContent>
      <xs:extension base="_MD_Identification_Type">-->
        <xs:sequence>
          <xs:element name="spatialRepresentationType" type="MD_SpatialRepresentationTypeCode_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
   <!--       <xs:element name="spatialResolution" type="smXML:MD_Resolution_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
          <xs:element name="language" type="scXML:CharacterString_PropertyType" maxOccurs="unbounded"/>
          <xs:element name="characterSet" type="smXML:MD_CharacterSetCode_PropertyType" minOccurs="0" maxOccurs="unbounded"/>-->
          <xs:element name="topicCategory" type="MD_TopicCategoryCode_PropertyType" maxOccurs="unbounded"/>
   <!--       <xs:element name="environmentDescription" type="scXML:CharacterString_PropertyType" minOccurs="0"/>-->
          <xs:element name="extent" type="EX_Extent_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
   <!--       <xs:element name="supplementalInformation" type="scXML:CharacterString_PropertyType" minOccurs="0"/>-->
        </xs:sequence>
<!--      </xs:extension>-->
 <!--   </xs:complexContent>-->
  </xs:complexType>
  <!--  =========================================================================== -->
  <!--  =========================================================================== -->
  <xs:complexType name="MD_Keywords_Type">
    <xs:annotation>
      <xs:documentation>Keywords, their type and reference source</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="_Object_Type">
        <xs:sequence>
          <xs:element name="keyword" type="CharacterString_PropertyType" maxOccurs="unbounded"/>
   <!--       <xs:element name="type" type="smXML:MD_KeywordTypeCode_PropertyType" minOccurs="0"/>
          <xs:element name="thesaurusName" type="smXML:CI_Citation_PropertyType" minOccurs="0"/>-->
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <!--.......................................................................-->
  <xs:element name="MD_Keywords" type="MD_Keywords_Type"/>
  <!--.......................................................................-->
  <xs:complexType name="MD_Keywords_PropertyType">
    <xs:sequence>
      <xs:choice>
        <xs:element ref="MD_Keywords"/>
   <!--     <xs:element ref="scXML:Reference"/>-->
      </xs:choice>
    </xs:sequence>
  </xs:complexType> 
  <!--  =========================================================================== -->
  <xs:complexType name="MD_AggregrateInformation_Type">
    <xs:annotation>
      <xs:documentation>Encapsulates the dataset aggregation information</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="_Object_Type">
        <xs:sequence>
          <xs:element name="aggregateDataSetName" type="CI_Citation_PropertyType" minOccurs="0"/>
  <!--        <xs:element name="aggregateDataSetIdentifier" type="smXML:MD_Identifier_PropertyType" minOccurs="0"/>
          <xs:element name="associationType" type="smXML:DS_AssociationTypeCode_PropertyType"/>-->
          <xs:element name="initiativeType" type="DS_InitiativeTypeCode_PropertyType" minOccurs="0"/>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <!--  =========================================================================== -->
  <xs:complexType name="_MD_Identification_Type">
    <xs:annotation>
      <xs:documentation>Basic information about data</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="_Object_Type">
        <xs:sequence>
          <xs:element name="citation" type="CI_Citation_PropertyType"/>
          <xs:element name="abstract" type="CharacterString_PropertyType"/>
   <!--       <xs:element name="purpose" type="scXML:CharacterString_PropertyType" minOccurs="0"/>
          <xs:element name="credit" type="scXML:CharacterString_PropertyType" minOccurs="0" maxOccurs="unbounded"/>-->
          <xs:element name="status" type="MD_ProgressCode_PropertyType" minOccurs="0" maxOccurs="unbounded"/> 
          <xs:element name="pointOfContact" type="CI_ResponsibleParty_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
   <!--       <xs:element name="resourceSpecificUsage" type="smXML:MD_Usage_PropertyType" minOccurs="0" maxOccurs="unbounded"/> -->
          <xs:element name="descriptiveKeywords" type="MD_Keywords_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
   <!--       <xs:element name="graphicOverview" type="smXML:MD_BrowseGraphic_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
          <xs:element name="resourceConstraints" type="smXML:MD_Constraints_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
          <xs:element name="resourceMaintenance" type="smXML:MD_MaintenanceInformation_PropertyType" minOccurs="0" maxOccurs="unbounded"/> -->
          <xs:element name="resourceFormat" type="MD_Format_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
   <!--  =========================only ISO like================================================== -->
         <xs:element name="MD_DataIdentification" type="MD_DataIdentification_Type" minOccurs="0" maxOccurs="unbounded"/>
         <xs:element name="MD_Aggregrateinformation" type="MD_AggregrateInformation_Type" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <!--.......................................................................-->
  <xs:element name="_MD_Identification" type="_MD_Identification_Type"/>
  <!--.......................................................................-->
  <xs:complexType name="_MD_Identification_PropertyType">
    <xs:sequence>
      <xs:choice>
        <xs:element ref="_MD_Identification"/>
  <!--  <xs:element ref="scXML:Reference"/>   -->
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
 <xs:complexType name="MD_ProgressCode_Type">
    <xs:simpleContent>
      <xs:extension base="xs:string">
        <xs:attribute name="codeList" type="xs:anyURI" use="required"/>
        <xs:attribute name="codeListValue" type="xs:string" use="required"/>
        <xs:attribute name="codeSpace" type="xs:string" use="optional"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <!-- ........................................................................ -->
  <xs:element name="MD_ProgressCode" type="MD_ProgressCode_Type" substitutionGroup="CharacterString"/>
  <!-- ........................................................................ -->
  <xs:complexType name="MD_ProgressCode_PropertyType">
    <xs:sequence>
      <xs:element ref="MD_ProgressCode"/>
    </xs:sequence>
  </xs:complexType>
  <!-- ==================identification.xsd end sm================== -->
  <!-- ==================identification.xsd end sm================== -->
  <!-- ==================identification.xsd end sm================== -->
  <!-- ==================constraints.xsd begin sm================== -->
  <!-- ==================constraints.xsd begin sm================== -->
  <!-- ==================constraints.xsd begin sm================== -->
  <xs:complexType name="MD_Constraints_Type">
    <xs:annotation>
      <xs:documentation>Restrictions on the access and use of a dataset or metadata</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="_Object_Type">
        <xs:sequence>
          <xs:element name="useLimitation" type="CharacterString_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <!--.......................................................................-->
  <xs:element name="MD_Constraints" type="MD_Constraints_Type"/>
  <!--.......................................................................-->
  <xs:complexType name="MD_Constraints_PropertyType">
    <xs:sequence>
      <xs:choice>
        <xs:element ref="MD_Constraints"/>
  <!--      <xs:element ref="scXML:Reference"/>-->
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
  <!--  =========================================================================== -->
  <xs:complexType name="MD_LegalConstraints_Type">
    <xs:annotation>
      <xs:documentation>Restrictions and legal prerequisites for accessing and using the dataset.</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="MD_Constraints_Type">
        <xs:sequence>
  <!--        <xs:element name="accessConstraints" type="MD_RestrictionCode_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
          <xs:element name="useConstraints" type="MD_RestrictionCode_PropertyType" minOccurs="0" maxOccurs="unbounded"/> -->
          <xs:element name="accessConstraints" type="CharacterString_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
          <xs:element name="useConstraints" type="CharacterString_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
          <xs:element name="otherConstraints" type="CharacterString_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <!--.......................................................................-->
  <xs:element name="MD_LegalConstraints" type="MD_LegalConstraints_Type" substitutionGroup="MD_Constraints">
    <xs:annotation>
      <xs:documentation>
   ***   otherConstraints: documented if accessConstraints or useConstraints = "otherRestrictions"
</xs:documentation>
    </xs:annotation>
  </xs:element>
  <!--.......................................................................-->
  <!-- ==================constraints.xsd end sm================== -->
  <!-- ==================constraints.xsd end sm================== -->
  <!-- ==================constraints.xsd end sm================== -->
  <!-- ==================WDCC no ISO begin sm================== -->
  <!-- ==================WDCC no ISO  begin sm================== -->
  <!-- ==================WDCC no ISO  begin sm================== -->
  <xs:complexType name="DQ_Comp_Type">
    <xs:sequence>
      <xs:element name="statement" type="CharacterString_PropertyType" minOccurs="0"/>/>
    </xs:sequence>
  </xs:complexType>
  <!--.......................................................................-->
  <xs:element name="DQ_CompletenessOmission" type="DQ_Comp_Type"/>
  <!--.......................................................................-->
  <xs:complexType name="DQ_Completeness_Type">
    <xs:sequence>
      <xs:element ref="DQ_CompletenessOmission"/>
    </xs:sequence>
  </xs:complexType>
  <!--.......................................................................-->
  <xs:element name="DQ_QuantitativeAttributeAccuracy" type="DQ_Comp_Type"/>
  <!--.......................................................................-->
  <xs:complexType name="DQ_ThematicAccuracy_Type">
    <xs:sequence>
      <xs:element ref="DQ_QuantitativeAttributeAccuracy"/>
    </xs:sequence>
  </xs:complexType>
 <!--.......................................................................-->
  <xs:element name="DQ_ConceptualConsistency" type="DQ_Comp_Type"/>
  <!--.......................................................................-->
  <xs:complexType name="DQ_LogicalConsistency_Type">
    <xs:sequence>
      <xs:element ref="DQ_ConceptualConsistency"/>
    </xs:sequence>
  </xs:complexType>
 <!--.......................................................................-->
  <xs:element name="DQ_GriddedDataPositionalAccuracy" type="DQ_Comp_Type"/>
  <!--.......................................................................-->
  <xs:complexType name="DQ_PositionalAccuracy_Type">
    <xs:sequence>
      <xs:element ref="DQ_GriddedDataPositionalAccuracy"/>
    </xs:sequence>
  </xs:complexType>
  <!--.......................................................................-->
  <xs:complexType name="TM_Primitive_PropertyType">
    <xs:sequence>
      <xs:element name="beginDateTime" type="CharacterString_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="endDateTime" type="CharacterString_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="dataFrequency" type="CharacterString_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>
  <!-- ==================WDCC no ISO end sm================== -->
  <!-- ==================WDCC no ISO end sm================== -->
  <!-- ==================WDCC no ISO end begin sm================== -->
  <!-- ==================dataQuality.xsd begin sm================== -->
  <!-- ==================dataQuality.xsd begin sm================== -->
  <!-- ==================dataQuality.xsd begin sm================== -->
  <!--  =========================================================================== -->
  <xs:complexType name="DQ_QuantitativeResult_Type">
    <xs:annotation>
      <xs:documentation>Quantitative_conformance_measure from Quality Procedures.
Renamed to remove implied use limitation
OCL
-- result is type specified by valueDomain
result.tupleType = valueDomain</xs:documentation>
    </xs:annotation>
    <!--<xs:complexContent>-->
    <!--  <xs:extension base="_DQ_Result_Type">-->
        <xs:sequence>
    <!--      <xs:element name="valueType" type="scXML:RecordType_PropertyType" minOccurs="0"/>-->
          <xs:element name="valueUnit" type="_UnitOfMeasure_PropertyType"/>
    <!--      <xs:element name="errorStatistic" type="scXML:CharacterString_PropertyType" minOccurs="0"/>
          <xs:element name="value" type="scXML:Record_PropertyType" maxOccurs="unbounded"/>-->
        </xs:sequence>
    <!--   </xs:extension>-->
    <!--</xs:complexContent>-->
  </xs:complexType>
  <!--  =========================================================================== -->
  <xs:complexType name="_DQ_Element_Type">
    <xs:annotation>
      <xs:documentation/>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="_Object_Type">
        <xs:sequence>
          <xs:element name="nameOfMeasure" type="CharacterString_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
   <!--       <xs:element name="measureIdentification" type="smXML:MD_Identifier_PropertyType" minOccurs="0"/>-->
          <xs:element name="measureDescription" type="CharacterString_PropertyType" minOccurs="0"/>
   <!--       <xs:element name="evaluationMethodType" type="smXML:DQ_EvaluationMethodTypeCode_PropertyType" minOccurs="0"/>
          <xs:element name="evaluationMethodDescription" type="scXML:CharacterString_PropertyType" minOccurs="0"/>
          <xs:element name="evaluationProcedure" type="smXML:CI_Citation_PropertyType" minOccurs="0"/>
          <xs:element name="dateTime" type="scXML:DateTime_PropertyType" minOccurs="0" maxOccurs="unbounded"/>-->
          <xs:element name="DQ_QuantitativeResult" type="DQ_QuantitativeResult_Type" maxOccurs="2"/>
   <!--  =========================only ISO like================================================== -->
          <xs:element name="DQ_Completeness" type="DQ_Completeness_Type" minOccurs="0" maxOccurs="unbounded"/>
          <xs:element name="DQ_ThematicAccuracy" type="DQ_ThematicAccuracy_Type" minOccurs="0" maxOccurs="unbounded"/>
          <xs:element name="DQ_LogicalConsistency" type="DQ_LogicalConsistency_Type" minOccurs="0" maxOccurs="unbounded"/>
          <xs:element name="DQ_PositionalAccuracy" type="DQ_PositionalAccuracy_Type" minOccurs="0" maxOccurs="unbounded"/>
	</xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <!--.......................................................................-->
  <xs:element name="_DQ_Element" type="_DQ_Element_Type"/>
  <!--.......................................................................-->
  <xs:complexType name="_DQ_Element_PropertyType">
    <xs:sequence>
      <xs:choice>
        <xs:element ref="_DQ_Element"/>
  <!--      <xs:element ref="scXML:Reference"/>-->
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
  <!--  =========================================================================== -->
  <xs:complexType name="DQ_Scope_Type">
    <xs:annotation>
      <xs:documentation/>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="_Object_Type">
        <xs:sequence>
          <xs:element name="level" type="MD_ScopeCode_PropertyType"/>
  <!--        <xs:element name="extent" type="smXML:EX_Extent_PropertyType" minOccurs="0"/>
          <xs:element name="levelDescription" type="smXML:MD_ScopeDescription_PropertyType" minOccurs="0" maxOccurs="unbounded"/>-->
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <!--.......................................................................-->
  <xs:element name="DQ_Scope" type="DQ_Scope_Type">
    <xs:annotation>
      <xs:documentation>
   ***   "levelDescription" is mandatory if "level" notEqual 'dataset' or 'series'
</xs:documentation>
    </xs:annotation>
  </xs:element>
  <!--.......................................................................-->
  <xs:complexType name="DQ_Scope_PropertyType">
    <xs:sequence>
      <xs:choice>
        <xs:element ref="DQ_Scope"/>
  <!--      <xs:element ref="scXML:Reference"/>-->
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
  <!--  =========================================================================== -->
  <xs:complexType name="DQ_DataQuality_Type">
    <xs:annotation>
      <xs:documentation/>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="_Object_Type">
        <xs:sequence>
          <xs:element name="scope" type="DQ_Scope_PropertyType"/>
  <!--        <xs:element name="lineage" type="smXML:LI_Lineage_PropertyType" minOccurs="0"/>-->
          <xs:element name="report" type="_DQ_Element_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <!--.......................................................................-->
  <xs:element name="DQ_DataQuality" type="DQ_DataQuality_Type">
    <xs:annotation>
      <xs:documentation>
   ***   "report" or "lineage" role is mandatory if scope.DQ_Scope.level = 'dataset'
</xs:documentation>
    </xs:annotation>
  </xs:element>
  <!--.......................................................................-->
  <xs:complexType name="DQ_DataQuality_PropertyType">
    <xs:sequence>
      <xs:choice>
        <xs:element ref="DQ_DataQuality"/>
  <!--      <xs:element ref="scXML:Reference"/>-->
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
  <!--  =========================================================================== -->
  <!-- ==================dataQuality.xsd begin sm================== -->
  <!-- ==================dataQuality.xsd begin sm================== -->
  <!-- ==================dataQuality.xsd begin sm================== -->
  <!-- ==================metadataEntity.xsd begin sm================== -->
  <!-- ==================metadataEntity.xsd begin sm================== -->
  <!-- ==================metadataEntity.xsd begin sm================== -->
   <xs:annotation>
   <xs:documentation>
	    			This schema was directly generated from the ISO TC 211 Harmonized UML model via
	    			Version 0.10 of the Rational Rose Script 'XMLout4XMLSchema.ebs' and via
	    			'UMLSchema_to_XMLSchema.xslt' for the DGIWG contribution to the ISO 19139 Project Team
	    			 at DateTime 05-26-2004 18:19:52</xs:documentation>
  </xs:annotation>
  <!-- ================== Classes  ================== -->
  <xs:complexType name="MD_Metadata_Type">
    <xs:annotation>
      <xs:documentation>Information about the metadata</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="_Object_Type">
        <xs:sequence>
          <xs:element name="fileIdentifier" type="CharacterString_PropertyType" minOccurs="0"/>
          <xs:element name="language" type="CharacterString_PropertyType" minOccurs="0"/>
     <!-- <xs:element name="characterSet" type="smXML:MD_CharacterSetCode_PropertyType"  minOccurs="0"/> -->
          <xs:element name="parentIdentifier" type="CharacterString_PropertyType" minOccurs="0"/>
	  <xs:element name="hierarchyLevel" type="MD_ScopeCode_PropertyType"  minOccurs="0" maxOccurs="unbounded"/>
     <!-- <xs:element name="hierarchyLevelName" type="scXML:CharacterString_PropertyType" minOccurs="0" maxOccurs="unbounded"/> -->
	  <xs:element name="contact" type="CI_ResponsibleParty_PropertyType" maxOccurs="unbounded"/>
	  <xs:element name="dateStamp" type="Date_PropertyType"/>
	  <xs:element name="metadataStandardName" type="CharacterString_PropertyType" minOccurs="0"/>
          <xs:element name="metadataStandardVersion" type="CharacterString_PropertyType" minOccurs="0"/>
     <!-- <xs:element name="dataSet" type="scXML:CharacterString_PropertyType" minOccurs="0"/>
          <xs:element name="featureAttribute" type="asXML:GF_AttributeType_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
          <xs:element name="featureType" type="asXML:GF_FeatureType_PropertyType" minOccurs="0" maxOccurs="unbounded"/>-->
          <xs:element name="identificationInfo" type="_MD_Identification_PropertyType" maxOccurs="unbounded"/>
          <xs:element name="metadataConstraints" type="MD_Constraints_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
          <xs:element name="dataQualityInfo" type="DQ_DataQuality_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
     <!--     <xs:element name="metadataMaintenance" type="smXML:MD_MaintenanceInformation_PropertyType" minOccurs="0"/>
          <xs:element name="spatialRepresentationInfo" type="smXML:_MD_SpatialRepresentation_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
          <xs:element name="referenceSystemInfo" type="smXML:MD_ReferenceSystem_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
          <xs:element name="contentInfo" type="smXML:_MD_ContentInformation_PropertyType" minOccurs="0" maxOccurs="unbounded"/>-->
          <xs:element name="distributionInfo" type="MD_Distribution_PropertyType" minOccurs="0"/>
     <!--     <xs:element name="metadataExtensionInfo" type="smXML:MD_MetadataExtensionInformation_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
          <xs:element name="applicationSchemaInfo" type="smXML:MD_ApplicationSchemaInformation_PropertyType" minOccurs="0" maxOccurs="unbounded"/>
          <xs:element name="has" type="smXML:DS_DataSet_PropertyType" maxOccurs="unbounded"/> -->
	</xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
   <!--.......................................................................-->
  <xs:element name="MD_Metadata" type="MD_Metadata_Type">
    <xs:annotation>
      <xs:documentation>
   ***   Conditional statements:
   ***   language: documented if not defined by the encoding standard
   ***   characterSet: documented if ISO 10646-1 not used and not defined by the encoding standard
</xs:documentation>
    </xs:annotation>
  </xs:element>
</xs:schema>
  <!-- ==================metadataEntity.xsd end sm================== -->
  <!-- ==================metadataEntity.xsd end sm================== -->
  <!-- ==================metadataEntity.xsd end sm================== -->

