<?xml version="1.0" encoding="UTF-8"?>

<!-- 
  Variations/FRBR Project schema release 1.0
-->

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"

            xmlns="http://vfrbr.info/efrbr/1.0"
            targetNamespace="http://vfrbr.info/efrbr/1.0"
            elementFormDefault="qualified"
            attributeFormDefault="unqualified"
            >

  <!--
    XML element definitions
    for the eFRBR relationships
    common association types
    -->

  <!--
    generic association type
    -->
  <xsd:complexType name="GenericAssociationType"
                   >
    <xsd:attribute name="source"
                   type="xsd:anyURI"
                   use="required"
                   />
    <xsd:attribute name="target"
                   type="xsd:anyURI"
                   use="required"/>
  </xsd:complexType>

  <!--
    categoried associaiton type
    for the Other relations Groups
    -->
  <xsd:complexType name="CategoriedHasType">
    <xsd:complexContent>
      <xsd:extension base="GenericAssociationType">
        <xsd:attribute name="category"
                       use="optional">
          <xsd:simpleType>
            <xsd:restriction base="xsd:string">
              <xsd:enumeration value="autonomous"/>
              <xsd:enumeration value="referential"/>
              <xsd:enumeration value="wholePart"/>
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:attribute>
      </xsd:extension>
    </xsd:complexContent>
  </xsd:complexType>

</xsd:schema>
