<?xml version="1.0" encoding="utf-8"?>
<xs:schema
	elementFormDefault="qualified"
	attributeFormDefault="unqualified"
	targetNamespace="http://example.org/cld/terms#"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:cld="http://example.org/cld/terms#"
	xmlns:cldtype="http://example.org/cld/type#">

  <xs:annotation>
    <xs:documentation xml:lang="en">
    Dublin Core, Collection-Level Description Terms

    Based on:  http://www.ukoln.ac.uk/metadata/dcmi/collection-application-profile/

    $Workfile: cld.xsd $ $Revision: 1 $

    Last Updated by $Author: Cordial $ on $Modtime: 11/23/05 12:13p $

    $History: cld.xsd $
 * 
 * *****************  Version 1  *****************
 * User: Cordial      Date: 12/05/06   Time: 4:17p
 * Created in $/IMLSDCC/REGISTRY
 * 
 * *****************  Version 5  *****************
 * User: Thabing      Date: 9/13/06    Time: 10:40a
 * Updated in $/IMLSDCC/Collection Registry XML Export
 * Misc. changes 
 *
 * *****************  Version 4  *****************
 * User: Thabing      Date: 4/07/05    Time: 3:47p
 * Updated in $/IMLSDCC/Collection Registry XML Export
 * Corrected the annotation namespaces
 *
 * *****************  Version 3  *****************
 * User: Thabing      Date: 4/06/05    Time: 1:11p
 * Updated in $/IMLSDCC/Collection Registry XML Export
 * Moved acrual properties to the dcterms schema, changed CLDT to CLDType

    </xs:documentation>
  </xs:annotation>

  <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/03/xml.xsd" />
  <xs:import namespace="http://purl.org/dc/elements/1.1/" schemaLocation="dc.xsd" />
  <xs:import namespace="http://example.org/cld/type#" schemaLocation="cldtype.xsd" />

  <xs:element name="logo" substitutionGroup="dc:description" />
  <xs:element name="dateContentsCreated" substitutionGroup="dc:date" />

  <xs:complexType name="CLDType">
    <xs:simpleContent>
      <xs:restriction base="dc:SimpleLiteral">
        <xs:simpleType>
          <xs:restriction base="cldtype:CLDType" />
        </xs:simpleType>
        <xs:attribute ref="xml:lang" use="prohibited" />
      </xs:restriction>
    </xs:simpleContent>
  </xs:complexType>

  <xs:complexType name="DCCDAccrualMethod">
    <xs:simpleContent>
      <xs:restriction base="dc:SimpleLiteral">
        <xs:simpleType>
          <xs:restriction base="cld:DCCDAccrualMethod_Enum" />
        </xs:simpleType>
        <xs:attribute ref="xml:lang" use="prohibited" />
      </xs:restriction>
    </xs:simpleContent>
  </xs:complexType>

  <xs:complexType name="DCCDAccrualPeriodicity">
    <xs:simpleContent>
      <xs:restriction base="dc:SimpleLiteral">
        <xs:simpleType>
          <xs:restriction base="cld:DCCDAccrualPeriodicity_Enum" />
        </xs:simpleType>
        <xs:attribute ref="xml:lang" use="prohibited" />
      </xs:restriction>
    </xs:simpleContent>
  </xs:complexType>

  <xs:complexType name="DCCDAccrualPolicy">
    <xs:simpleContent>
      <xs:restriction base="dc:SimpleLiteral">
        <xs:simpleType>
          <xs:restriction base="cld:DCCDAccrualPolicy_Enum" />
        </xs:simpleType>
        <xs:attribute ref="xml:lang" use="prohibited" />
      </xs:restriction>
    </xs:simpleContent>
  </xs:complexType>

	<xs:simpleType name="DCCDAccrualMethod_Enum">
    <xs:union>
      <xs:simpleType>
        <xs:restriction base="xs:Name">
          <xs:enumeration value="Deposit" />
          <xs:enumeration value="Donation" />
          <xs:enumeration value="Purchase" />
          <xs:enumeration value="Loan" />
          <xs:enumeration value="License" />
          <xs:enumeration value="ItemCreation" />
      	</xs:restriction>
      </xs:simpleType>
    </xs:union>
	</xs:simpleType>

	<xs:simpleType name="DCCDAccrualPeriodicity_Enum">
    <xs:union>
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:enumeration value="Annual" />
          <xs:enumeration value="Yearly" /><!-- Not an 'official' value -->
          <xs:enumeration value="Bimonthly" />
          <xs:enumeration value="Semiweekly" />
          <xs:enumeration value="Daily" />
          <xs:enumeration value="Biweekly" />
          <xs:enumeration value="Semiannual" />
          <xs:enumeration value="Biennial" />
          <xs:enumeration value="Triennial" />
          <xs:enumeration value="Three times a week" />
          <xs:enumeration value="Three times a month" />
          <xs:enumeration value="Continuously updated" />
          <xs:enumeration value="Monthly" />
          <xs:enumeration value="Quarterly" />
          <xs:enumeration value="Semimonthly" />
          <xs:enumeration value="Three times a year" />
          <xs:enumeration value="Weekly" />
          <xs:enumeration value="Completely irregular" />

          <!-- The following added specifically for IMLSDCC -->
          <!-- ============================================ -->
          <xs:enumeration value="No longer adding"/>
          <xs:enumeration value="Irregularly"/>
      	</xs:restriction>
      </xs:simpleType>
    </xs:union>
	</xs:simpleType>

	<xs:simpleType name="DCCDAccrualPolicy_Enum">
    <xs:union>
      <xs:simpleType>
        <xs:restriction base="xs:Name">
          <xs:enumeration value="Closed" />
          <xs:enumeration value="Passive" />
          <xs:enumeration value="Active" />
          <xs:enumeration value="Partial" />
      	</xs:restriction>
      </xs:simpleType>
    </xs:union>
	</xs:simpleType>
</xs:schema>
