<?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:vfrbr-family="http://vfrbr.info/vfrbr/1.0/family"

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

  <!--
    include FRAD entity attributes
    -->
  <xsd:include schemaLocation="http://vfrbr.info/schemas/1.0/vfrbr-family-frad.xsd"/>
  <!--
    import vFRBR entity extensions
    -->
  <xsd:import namespace="http://vfrbr.info/vfrbr/1.0/family"
              schemaLocation="http://vfrbr.info/schemas/1.0/vfrbr-family-extend.xsd"/>

  <!--
    XML elements
    for vFRBR Family entity
    -->
  <xsd:element name="family">
    <xsd:complexType>
      <xsd:sequence>
        <!-- FRAD attributes -->
        <xsd:element ref="typeOfFamily"
                     minOccurs="0" maxOccurs="1"
                     />
        <xsd:element ref="datesOfFamily"
                     minOccurs="0" maxOccurs="unbounded"
                     />
        <xsd:element ref="placesAssociatedWithFamily"
                     minOccurs="0" maxOccurs="unbounded"
                     />
        <xsd:element ref="fieldOfActivity"
                     minOccurs="0" maxOccurs="unbounded"
                     />
        <xsd:element ref="historyOfFamily"
                     minOccurs="0" maxOccurs="unbounded"/>
        <!--
          extensions to entity attributes
          -->
        <xsd:element ref="vfrbr-family:note"
                     minOccurs="0" maxOccurs="unbounded"
                     />
        <xsd:element ref="vfrbr-family:extensions"
                     minOccurs="0" maxOccurs="1"/>
      </xsd:sequence>
      <!-- entity element identifier attribute -->
      <xsd:attribute name="identifier"
                     type="xsd:anyURI"
                     use="optional"/>
    </xsd:complexType>
  </xsd:element>

</xsd:schema>


