<?xml version="1.0" encoding="UTF-8"?>
<!--
 
                              An XML Schema:
  Encoded Archival Context - Corporate Bodies, Persons, and Families (EAC-CPF)

  See: https://eac.staatsbibliothek-berlin.de/schemata-and-tag-library/

  ***********************************************************************
  *                                                                     *                
  *                            EAC-CPF 3.0.0                            *
  *                                                                     *       
  ***********************************************************************

  EDITORS: Society of American Archivists Technical Subcommittee on Encoded Archival Standards (TS-EAS)
  
  PUBLISHER: Society of American Archivists in collaboration with the Staatsbibliothek zu Berlin
  
  PURPOSE: The EAC-CPF Schema is a communication standard for the description of corporate bodies,
  persons, and families. It is based on the International Council of Archives' International Standard 
  Archival Authority Record For Corporate Bodies, Persons and Families (ISAAR(CPF)). For additional
  documentation on the use of the standard, see the EAC-CPF Tag Library
  (https://eac.staatsbibliothek-berlin.de/schemata-and-tag-library/).
   
  *****************************************************************
 
  This schema has been generated automatically. 
   
  If you would like to contribute to this project, please see:
  https://github.com/SAA-SDT/TS-EAS-subteam-notes/wiki/Contributing-to-the-EAS-standards
  
  Comments, questions, and suggestions may be addressed to: 
  ts-eas@archivists.org
  
  For more information about the EAC-CPF team, see: 
  https://github.com/SAA-SDT/TS-EAS-subteam-notes/wiki/EAC-CPF-Sub-Team 
  
  -->
<grammar xmlns="http://relaxng.org/ns/structure/1.0"
         xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
         a:version="3.0.0">
   <start>
      <ref name="eac"/>
   </start>
   <define name="eac">
      <element name="eac" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <optional>
               <attribute name="audience" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="id" ns="">
                  <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <zeroOrMore>
               <attribute>
                  <anyName>
                     <except>
                        <choice>
                           <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                           <nsName ns=""/>
                        </choice>
                     </except>
                  </anyName>
                  <text/>
               </attribute>
            </zeroOrMore>
            <ref name="control"/>
            <choice>
               <ref name="cpfDescription"/>
               <ref name="multipleIdentities"/>
            </choice>
         </group>
      </element>
   </define>
   <define name="control">
      <element name="control" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="addressLineTypeEncoding" ns="">
                  <choice>
                     <value type="token" datatypeLibrary="" ns="">EASList</value>
                     <value type="token" datatypeLibrary="" ns="">otherAddressLineTypeEncoding</value>
                  </choice>
               </attribute>
            </optional>
            <optional>
               <attribute name="agentTypeEncoding" ns="">
                  <choice>
                     <value type="token" datatypeLibrary="" ns="">EASList</value>
                     <value type="token" datatypeLibrary="" ns="">otherAgentTypeEncoding</value>
                  </choice>
               </attribute>
            </optional>
            <optional>
               <attribute name="audienceEncoding" ns="">
                  <choice>
                     <value type="token" datatypeLibrary="" ns="">EASList</value>
                     <value type="token" datatypeLibrary="" ns="">otherAudienceEncoding</value>
                  </choice>
               </attribute>
            </optional>
            <optional>
               <attribute name="contactLineTypeEncoding" ns="">
                  <choice>
                     <value type="token" datatypeLibrary="" ns="">EASList</value>
                     <value type="token" datatypeLibrary="" ns="">otherContactLineTypeEncoding</value>
                  </choice>
               </attribute>
            </optional>
            <optional>
               <attribute name="countryEncoding" ns="">
                  <choice>
                     <value type="token" datatypeLibrary="" ns="">iso3166-1-alpha-2</value>
                     <value type="token" datatypeLibrary="" ns="">iso3166-1-alpha-3</value>
                     <value type="token" datatypeLibrary="" ns="">iso3166-1-numeric</value>
                     <value type="token" datatypeLibrary="" ns="">iso3166-2</value>
                     <value type="token" datatypeLibrary="" ns="">iso3166-3</value>
                     <value type="token" datatypeLibrary="" ns="">otherCountryEncoding</value>
                  </choice>
               </attribute>
            </optional>
            <optional>
               <attribute name="detailLevelEncoding" ns="">
                  <choice>
                     <value type="token" datatypeLibrary="" ns="">EASList</value>
                     <value type="token" datatypeLibrary="" ns="">otherDetailLevelEncoding</value>
                  </choice>
               </attribute>
            </optional>
            <optional>
               <attribute name="dateEncoding" ns="">
                  <choice>
                     <value type="token" datatypeLibrary="" ns="">iso8601</value>
                     <value type="token" datatypeLibrary="" ns="">otherDateEncoding</value>
                  </choice>
               </attribute>
            </optional>
            <optional>
               <attribute name="identityTypeEncoding" ns="">
                  <choice>
                     <value type="token" datatypeLibrary="" ns="">EASList</value>
                     <value type="token" datatypeLibrary="" ns="">otherIdentityTypeEncoding</value>
                  </choice>
               </attribute>
            </optional>
            <optional>
               <attribute name="languageEncoding" ns="">
                  <choice>
                     <value type="token" datatypeLibrary="" ns="">iso639-1</value>
                     <value type="token" datatypeLibrary="" ns="">iso639-2</value>
                     <value type="token" datatypeLibrary="" ns="">iso639-2b</value>
                     <value type="token" datatypeLibrary="" ns="">iso639-2t</value>
                     <value type="token" datatypeLibrary="" ns="">iso639-3</value>
                     <value type="token" datatypeLibrary="" ns="">iso639-5</value>
                     <value type="token" datatypeLibrary="" ns="">ietf-bcp-47</value>
                     <value type="token" datatypeLibrary="" ns="">otherLanguageEncoding</value>
                  </choice>
               </attribute>
            </optional>
            <optional>
               <attribute name="maintenanceEventTypeEncoding" ns="">
                  <choice>
                     <value type="token" datatypeLibrary="" ns="">EASList</value>
                     <value type="token" datatypeLibrary="" ns="">otherMaintenanceEventTypeEncoding</value>
                  </choice>
               </attribute>
            </optional>
            <optional>
               <attribute name="maintenanceStatusEncoding" ns="">
                  <choice>
                     <value type="token" datatypeLibrary="" ns="">EASList</value>
                     <value type="token" datatypeLibrary="" ns="">otherMaintenanceStatusEncoding</value>
                  </choice>
               </attribute>
            </optional>
            <optional>
               <attribute name="placeTypeEncoding" ns="">
                  <choice>
                     <value type="token" datatypeLibrary="" ns="">EASList</value>
                     <value type="token" datatypeLibrary="" ns="">otherPlaceTypeEncoding</value>
                  </choice>
               </attribute>
            </optional>
            <optional>
               <attribute name="publicationStatusEncoding" ns="">
                  <choice>
                     <value type="token" datatypeLibrary="" ns="">EASList</value>
                     <value type="token" datatypeLibrary="" ns="">otherPublicationStatusEncoding</value>
                  </choice>
               </attribute>
            </optional>
            <optional>
               <attribute name="referredEntityTypeEncoding" ns="">
                  <choice>
                     <value type="token" datatypeLibrary="" ns="">EASList</value>
                     <value type="token" datatypeLibrary="" ns="">otherReferredEntityTypeEncoding</value>
                  </choice>
               </attribute>
            </optional>
            <optional>
               <attribute name="relationTypeEncoding" ns="">
                  <choice>
                     <value type="token" datatypeLibrary="" ns="">EASList</value>
                     <value type="token" datatypeLibrary="" ns="">otherRelationTypeEncoding</value>
                  </choice>
               </attribute>
            </optional>
            <optional>
               <attribute name="repositoryEncoding" ns="">
                  <choice>
                     <value type="token" datatypeLibrary="" ns="">iso15511</value>
                     <value type="token" datatypeLibrary="" ns="">otherRepositoryEncoding</value>
                  </choice>
               </attribute>
            </optional>
            <optional>
               <attribute name="scriptEncoding" ns="">
                  <choice>
                     <value type="token" datatypeLibrary="" ns="">iso15924</value>
                     <value type="token" datatypeLibrary="" ns="">otherScriptEncoding</value>
                  </choice>
               </attribute>
            </optional>
            <optional>
               <attribute name="statusEncoding" ns="">
                  <choice>
                     <value type="token" datatypeLibrary="" ns="">EASList</value>
                     <value type="token" datatypeLibrary="" ns="">otherStatusEncoding</value>
                  </choice>
               </attribute>
            </optional>
            <optional>
               <attribute name="targetTypeEncoding" ns="">
                  <choice>
                     <value type="token" datatypeLibrary="" ns="">EASList</value>
                     <value type="token" datatypeLibrary="" ns="">otherTargetTypeEncoding</value>
                  </choice>
               </attribute>
            </optional>
            <optional>
               <attribute name="detailLevel" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="maintenanceStatus" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="publicationStatus" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <ref name="recordId"/>
            <ref name="maintenanceAgency"/>
            <ref name="maintenanceHistory"/>
            <optional>
               <ref name="sources"/>
            </optional>
            <zeroOrMore>
               <choice>
                  <ref name="conventionDeclaration"/>
                  <ref name="languageDeclaration"/>
                  <ref name="localTypeDeclaration"/>
                  <ref name="otherRecordId"/>
                  <ref name="rightsDeclaration"/>
               </choice>
            </zeroOrMore>
         </group>
      </element>
   </define>
   <define name="cpfDescription">
      <element name="cpfDescription"
               ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <ref name="identity"/>
            <optional>
               <ref name="description"/>
            </optional>
            <optional>
               <ref name="relations"/>
            </optional>
            <optional>
               <ref name="alternativeSet"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="multipleIdentities">
      <element name="multipleIdentities"
               ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <ref name="cpfDescription"/>
            <oneOrMore>
               <ref name="cpfDescription"/>
            </oneOrMore>
         </group>
      </element>
   </define>
   <define name="recordId">
      <element name="recordId" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <data type="string"
                  datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
               <param name="pattern">(.|\n|\r)*\S(.|\n|\r)*</param>
            </data>
         </group>
      </element>
   </define>
   <define name="maintenanceAgency">
      <element name="maintenanceAgency"
               ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="countryCode" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="vocabularySource" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="vocabularySourceURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="valueURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <choice>
               <group>
                  <ref name="agencyCode"/>
                  <zeroOrMore>
                     <ref name="agencyName"/>
                  </zeroOrMore>
                  <zeroOrMore>
                     <ref name="otherAgencyCode"/>
                  </zeroOrMore>
               </group>
               <group>
                  <oneOrMore>
                     <ref name="agencyName"/>
                  </oneOrMore>
                  <zeroOrMore>
                     <ref name="otherAgencyCode"/>
                  </zeroOrMore>
               </group>
            </choice>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="maintenanceHistory">
      <element name="maintenanceHistory"
               ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <oneOrMore>
               <ref name="maintenanceEvent"/>
            </oneOrMore>
         </group>
      </element>
   </define>
   <define name="sources">
      <element name="sources" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <oneOrMore>
               <ref name="source"/>
            </oneOrMore>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="conventionDeclaration">
      <element name="conventionDeclaration"
               ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="vocabularySource" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="vocabularySourceURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="valueURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <ref name="reference"/>
            <optional>
               <ref name="shortCode"/>
            </optional>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="languageDeclaration">
      <element name="languageDeclaration"
               ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <attribute name="languageCode" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
               <optional>
                  <attribute name="scriptCode" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="localTypeDeclaration">
      <element name="localTypeDeclaration"
               ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="vocabularySource" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="vocabularySourceURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="valueURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <ref name="reference"/>
            <optional>
               <ref name="shortCode"/>
            </optional>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="otherRecordId">
      <element name="otherRecordId" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="vocabularySource" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="vocabularySourceURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="valueURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <text/>
         </group>
      </element>
   </define>
   <define name="rightsDeclaration">
      <element name="rightsDeclaration"
               ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="vocabularySource" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="vocabularySourceURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="valueURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <ref name="reference"/>
            <optional>
               <ref name="shortCode"/>
            </optional>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="identity">
      <element name="identity" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="identityType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <ref name="entityType"/>
            <oneOrMore>
               <choice>
                  <ref name="nameEntry"/>
                  <ref name="nameEntrySet"/>
               </choice>
            </oneOrMore>
            <optional>
               <ref name="otherEntityTypes"/>
            </optional>
            <zeroOrMore>
               <ref name="identityId"/>
            </zeroOrMore>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="description">
      <element name="description" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <ref name="demographicDescriptions"/>
            </optional>
            <optional>
               <ref name="functionsPerformed"/>
            </optional>
            <optional>
               <ref name="languagesUsed"/>
            </optional>
            <optional>
               <ref name="legalStatuses"/>
            </optional>
            <optional>
               <ref name="localDescriptions"/>
            </optional>
            <optional>
               <ref name="mandates"/>
            </optional>
            <optional>
               <ref name="occupations"/>
            </optional>
            <optional>
               <ref name="places"/>
            </optional>
            <zeroOrMore>
               <choice>
                  <ref name="biogHist"/>
                  <ref name="existDates"/>
                  <ref name="generalContext"/>
                  <ref name="structureOrGenealogy"/>
               </choice>
            </zeroOrMore>
         </group>
      </element>
   </define>
   <define name="relations">
      <element name="relations" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <oneOrMore>
               <ref name="relation"/>
            </oneOrMore>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="alternativeSet">
      <element name="alternativeSet"
               ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <oneOrMore>
               <ref name="setComponent"/>
            </oneOrMore>
         </group>
      </element>
   </define>
   <define name="agencyCode">
      <element name="agencyCode" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="status" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="vocabularySource" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="vocabularySourceURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="valueURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <text/>
         </group>
      </element>
   </define>
   <define name="agencyName">
      <element name="agencyName" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="vocabularySource" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="vocabularySourceURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="valueURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <text/>
         </group>
      </element>
   </define>
   <define name="otherAgencyCode">
      <element name="otherAgencyCode"
               ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="status" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="vocabularySource" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="vocabularySourceURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="valueURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <text/>
         </group>
      </element>
   </define>
   <define name="descriptiveNote">
      <element name="descriptiveNote"
               ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <oneOrMore>
               <ref name="p"/>
            </oneOrMore>
            <optional>
               <ref name="objectXMLWrap"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="maintenanceEvent">
      <element name="maintenanceEvent"
               ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="maintenanceEventType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <ref name="agent"/>
            <ref name="eventDateTime"/>
            <zeroOrMore>
               <ref name="eventDescription"/>
            </zeroOrMore>
         </group>
      </element>
   </define>
   <define name="source">
      <element name="source" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="href" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="linkRole" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="linkTitle" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="vocabularySource" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="vocabularySourceURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="valueURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <oneOrMore>
               <ref name="reference"/>
            </oneOrMore>
            <zeroOrMore>
               <ref name="citedRange"/>
            </zeroOrMore>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
            <optional>
               <ref name="objectXMLWrap"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="reference">
      <element name="reference" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="href" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="linkRole" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="linkTitle" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <oneOrMore>
               <choice>
                  <ref name="referringString"/>
                  <ref name="span"/>
                  <text/>
               </choice>
            </oneOrMore>
         </group>
      </element>
   </define>
   <define name="shortCode">
      <element name="shortCode" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <text/>
         </group>
      </element>
   </define>
   <define name="entityType">
      <element name="entityType" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <attribute name="value" ns="">
               <choice>
                  <value type="token" datatypeLibrary="" ns="">corporateBody</value>
                  <value type="token" datatypeLibrary="" ns="">person</value>
                  <value type="token" datatypeLibrary="" ns="">family</value>
               </choice>
            </attribute>
         </group>
      </element>
   </define>
   <define name="nameEntry">
      <element name="nameEntry" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="vocabularySource" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="vocabularySourceURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="valueURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="preferredForm" ns="">
                  <data type="boolean"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="status" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <oneOrMore>
               <ref name="part"/>
            </oneOrMore>
            <zeroOrMore>
               <ref name="useDates"/>
            </zeroOrMore>
         </group>
      </element>
   </define>
   <define name="nameEntrySet">
      <element name="nameEntrySet" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <ref name="nameEntry"/>
            <oneOrMore>
               <ref name="nameEntry"/>
            </oneOrMore>
            <zeroOrMore>
               <ref name="useDates"/>
            </zeroOrMore>
         </group>
      </element>
   </define>
   <define name="otherEntityTypes">
      <element name="otherEntityTypes"
               ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <oneOrMore>
               <ref name="otherEntityType"/>
            </oneOrMore>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="identityId">
      <element name="identityId" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="vocabularySource" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="vocabularySourceURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="valueURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <text/>
         </group>
      </element>
   </define>
   <define name="demographicDescriptions">
      <element name="demographicDescriptions"
               ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <oneOrMore>
               <ref name="demographicDescription"/>
            </oneOrMore>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="functionsPerformed">
      <element name="functionsPerformed"
               ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <oneOrMore>
               <ref name="functionPerformed"/>
            </oneOrMore>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="languagesUsed">
      <element name="languagesUsed" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <oneOrMore>
               <ref name="languageUsed"/>
            </oneOrMore>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="legalStatuses">
      <element name="legalStatuses" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <oneOrMore>
               <ref name="legalStatus"/>
            </oneOrMore>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="localDescriptions">
      <element name="localDescriptions"
               ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <oneOrMore>
               <ref name="localDescription"/>
            </oneOrMore>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="mandates">
      <element name="mandates" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <oneOrMore>
               <ref name="mandate"/>
            </oneOrMore>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="occupations">
      <element name="occupations" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <oneOrMore>
               <ref name="occupation"/>
            </oneOrMore>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="places">
      <element name="places" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <oneOrMore>
               <ref name="place"/>
            </oneOrMore>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="biogHist">
      <element name="biogHist" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <ref name="abstract"/>
            </optional>
            <choice>
               <optional>
                  <ref name="formattingExtension"/>
               </optional>
               <zeroOrMore>
                  <ref name="p"/>
               </zeroOrMore>
            </choice>
            <zeroOrMore>
               <ref name="narrativeEvent"/>
            </zeroOrMore>
         </group>
      </element>
   </define>
   <define name="existDates">
      <element name="existDates" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <choice>
               <ref name="date"/>
               <ref name="dateRange"/>
               <ref name="dateSet"/>
            </choice>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="generalContext">
      <element name="generalContext"
               ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <choice>
               <optional>
                  <ref name="formattingExtension"/>
               </optional>
               <zeroOrMore>
                  <ref name="p"/>
               </zeroOrMore>
            </choice>
         </group>
      </element>
   </define>
   <define name="structureOrGenealogy">
      <element name="structureOrGenealogy"
               ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <choice>
               <optional>
                  <ref name="formattingExtension"/>
               </optional>
               <zeroOrMore>
                  <ref name="p"/>
               </zeroOrMore>
            </choice>
         </group>
      </element>
   </define>
   <define name="relation">
      <element name="relation" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="relationType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="targetType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <oneOrMore>
               <ref name="label"/>
            </oneOrMore>
            <optional>
               <choice>
                  <ref name="date"/>
                  <ref name="dateRange"/>
                  <ref name="dateSet"/>
               </choice>
            </optional>
            <zeroOrMore>
               <choice>
                  <ref name="placeName"/>
                  <ref name="role"/>
               </choice>
            </zeroOrMore>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
            <optional>
               <ref name="objectXMLWrap"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="setComponent">
      <element name="setComponent" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="href" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="linkRole" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="linkTitle" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <zeroOrMore>
               <ref name="componentEntry"/>
            </zeroOrMore>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
            <optional>
               <ref name="objectXMLWrap"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="p">
      <element name="p" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <oneOrMore>
               <choice>
                  <ref name="reference"/>
                  <ref name="referringString"/>
                  <ref name="span"/>
                  <text/>
               </choice>
            </oneOrMore>
         </group>
      </element>
   </define>
   <define name="objectXMLWrap">
      <element name="objectXMLWrap" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <ref name="_1"/>
         </group>
      </element>
   </define>
   <define name="agent">
      <element name="agent" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="vocabularySource" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="vocabularySourceURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="valueURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="agentType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <oneOrMore>
               <ref name="label"/>
            </oneOrMore>
            <optional>
               <choice>
                  <ref name="date"/>
                  <ref name="dateRange"/>
                  <ref name="dateSet"/>
               </choice>
            </optional>
            <zeroOrMore>
               <ref name="placeName"/>
            </zeroOrMore>
            <zeroOrMore>
               <ref name="role"/>
            </zeroOrMore>
            <zeroOrMore>
               <ref name="relationship"/>
            </zeroOrMore>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="eventDateTime">
      <element name="eventDateTime" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="standardDateTime" ns="">
                  <choice>
                     <data type="gYear"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                     <data type="gYearMonth"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                     <data type="date"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                     <data type="dateTime"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </choice>
               </attribute>
            </optional>
            <text/>
         </group>
      </element>
   </define>
   <define name="eventDescription">
      <element name="eventDescription"
               ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <oneOrMore>
               <choice>
                  <ref name="reference"/>
                  <ref name="referringString"/>
                  <ref name="span"/>
                  <text/>
               </choice>
            </oneOrMore>
         </group>
      </element>
   </define>
   <define name="citedRange">
      <element name="citedRange" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="unit" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <text/>
         </group>
      </element>
   </define>
   <define name="referringString">
      <element name="referringString"
               ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="vocabularySource" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="vocabularySourceURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="valueURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="normalizedForm" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="referredEntityType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="referredEntityRelationship" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <text/>
         </group>
      </element>
   </define>
   <define name="span">
      <element name="span" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="style" ns="">
                  <data type="normalizedString"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <text/>
         </group>
      </element>
   </define>
   <define name="part">
      <element name="part" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <data type="string"
                  datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
               <param name="pattern">(.|\n|\r)*\S(.|\n|\r)*</param>
            </data>
         </group>
      </element>
   </define>
   <define name="useDates">
      <element name="useDates" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <choice>
               <ref name="date"/>
               <ref name="dateRange"/>
               <ref name="dateSet"/>
            </choice>
         </group>
      </element>
   </define>
   <define name="otherEntityType">
      <element name="otherEntityType"
               ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="vocabularySource" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="vocabularySourceURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="valueURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <oneOrMore>
               <ref name="term"/>
            </oneOrMore>
            <optional>
               <choice>
                  <ref name="date"/>
                  <ref name="dateRange"/>
                  <ref name="dateSet"/>
               </choice>
            </optional>
            <zeroOrMore>
               <ref name="placeName"/>
            </zeroOrMore>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="demographicDescription">
      <element name="demographicDescription"
               ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="vocabularySource" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="vocabularySourceURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="valueURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <oneOrMore>
               <ref name="term"/>
            </oneOrMore>
            <optional>
               <choice>
                  <ref name="date"/>
                  <ref name="dateRange"/>
                  <ref name="dateSet"/>
               </choice>
            </optional>
            <zeroOrMore>
               <ref name="placeName"/>
            </zeroOrMore>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="functionPerformed">
      <element name="functionPerformed"
               ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="vocabularySource" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="vocabularySourceURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="valueURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <oneOrMore>
               <ref name="term"/>
            </oneOrMore>
            <optional>
               <choice>
                  <ref name="date"/>
                  <ref name="dateRange"/>
                  <ref name="dateSet"/>
               </choice>
            </optional>
            <zeroOrMore>
               <ref name="placeName"/>
            </zeroOrMore>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="languageUsed">
      <element name="languageUsed" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <zeroOrMore>
               <choice>
                  <ref name="language"/>
                  <ref name="writingSystem"/>
               </choice>
            </zeroOrMore>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="legalStatus">
      <element name="legalStatus" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="vocabularySource" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="vocabularySourceURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="valueURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <oneOrMore>
               <ref name="term"/>
            </oneOrMore>
            <optional>
               <choice>
                  <ref name="date"/>
                  <ref name="dateRange"/>
                  <ref name="dateSet"/>
               </choice>
            </optional>
            <zeroOrMore>
               <ref name="placeName"/>
            </zeroOrMore>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="localDescription">
      <element name="localDescription"
               ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="vocabularySource" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="vocabularySourceURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="valueURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <oneOrMore>
               <ref name="term"/>
            </oneOrMore>
            <optional>
               <choice>
                  <ref name="date"/>
                  <ref name="dateRange"/>
                  <ref name="dateSet"/>
               </choice>
            </optional>
            <zeroOrMore>
               <ref name="placeName"/>
            </zeroOrMore>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="mandate">
      <element name="mandate" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="vocabularySource" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="vocabularySourceURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="valueURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <oneOrMore>
               <ref name="term"/>
            </oneOrMore>
            <optional>
               <choice>
                  <ref name="date"/>
                  <ref name="dateRange"/>
                  <ref name="dateSet"/>
               </choice>
            </optional>
            <zeroOrMore>
               <ref name="placeName"/>
            </zeroOrMore>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="occupation">
      <element name="occupation" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="vocabularySource" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="vocabularySourceURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="valueURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <oneOrMore>
               <ref name="term"/>
            </oneOrMore>
            <optional>
               <choice>
                  <ref name="date"/>
                  <ref name="dateRange"/>
                  <ref name="dateSet"/>
               </choice>
            </optional>
            <zeroOrMore>
               <ref name="placeName"/>
            </zeroOrMore>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="place">
      <element name="place" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="vocabularySource" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="vocabularySourceURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="valueURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="placeType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <oneOrMore>
               <ref name="label"/>
            </oneOrMore>
            <optional>
               <choice>
                  <ref name="date"/>
                  <ref name="dateRange"/>
                  <ref name="dateSet"/>
               </choice>
            </optional>
            <zeroOrMore>
               <ref name="role"/>
            </zeroOrMore>
            <zeroOrMore>
               <ref name="relationship"/>
            </zeroOrMore>
            <zeroOrMore>
               <choice>
                  <ref name="address"/>
                  <ref name="contact"/>
                  <ref name="geographicCoordinates"/>
               </choice>
            </zeroOrMore>
            <optional>
               <ref name="descriptiveNote"/>
            </optional>
         </group>
      </element>
   </define>
   <define name="abstract">
      <element name="abstract" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <oneOrMore>
               <choice>
                  <ref name="reference"/>
                  <ref name="referringString"/>
                  <ref name="span"/>
                  <text/>
               </choice>
            </oneOrMore>
         </group>
      </element>
   </define>
   <define name="formattingExtension">
      <element name="formattingExtension"
               ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <oneOrMore>
               <ref name="_1"/>
            </oneOrMore>
         </group>
      </element>
   </define>
   <define name="narrativeEvent">
      <element name="narrativeEvent"
               ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <oneOrMore>
               <ref name="date"/>
            </oneOrMore>
            <zeroOrMore>
               <choice>
                  <ref name="agent"/>
                  <ref name="placeName"/>
                  <ref name="eventDescription"/>
               </choice>
            </zeroOrMore>
         </group>
      </element>
   </define>
   <define name="date">
      <element name="date" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="calendar" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="certainty" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="era" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="notAfter" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="notBefore" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="standardDate" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="status" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <text/>
         </group>
      </element>
   </define>
   <define name="dateRange">
      <element name="dateRange" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <choice>
               <group>
                  <ref name="fromDate"/>
                  <optional>
                     <ref name="toDate"/>
                  </optional>
               </group>
               <ref name="toDate"/>
            </choice>
         </group>
      </element>
   </define>
   <define name="dateSet">
      <element name="dateSet" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <choice>
               <ref name="date"/>
               <ref name="dateRange"/>
            </choice>
            <oneOrMore>
               <choice>
                  <ref name="date"/>
                  <ref name="dateRange"/>
               </choice>
            </oneOrMore>
         </group>
      </element>
   </define>
   <define name="label">
      <element name="label" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="vocabularySource" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="vocabularySourceURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="valueURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <text/>
         </group>
      </element>
   </define>
   <define name="placeName">
      <element name="placeName" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="vocabularySource" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="vocabularySourceURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="valueURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="countryCode" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <text/>
         </group>
      </element>
   </define>
   <define name="role">
      <element name="role" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="vocabularySource" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="vocabularySourceURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="valueURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <text/>
         </group>
      </element>
   </define>
   <define name="componentEntry">
      <element name="componentEntry"
               ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="vocabularySource" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="vocabularySourceURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="valueURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <text/>
         </group>
      </element>
   </define>
   <define name="_1">
      <element>
         <anyName>
            <except>
               <nsName ns="https://standards.openpreservation.org/eac/v3"/>
            </except>
         </anyName>
         <group>
            <zeroOrMore>
               <attribute>
                  <anyName/>
                  <text/>
               </attribute>
            </zeroOrMore>
            <oneOrMore>
               <choice>
                  <text/>
                  <ref name="_1"/>
               </choice>
            </oneOrMore>
         </group>
      </element>
   </define>
   <define name="relationship">
      <element name="relationship" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="vocabularySource" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="vocabularySourceURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="valueURI" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <text/>
         </group>
      </element>
   </define>
   <define name="term">
      <element name="term" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <text/>
         </group>
      </element>
   </define>
   <define name="language">
      <element name="language" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="languageCode" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <text/>
         </group>
      </element>
   </define>
   <define name="writingSystem">
      <element name="writingSystem" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="scriptCode" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <text/>
         </group>
      </element>
   </define>
   <define name="address">
      <element name="address" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <oneOrMore>
               <ref name="addressLine"/>
            </oneOrMore>
         </group>
      </element>
   </define>
   <define name="contact">
      <element name="contact" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <oneOrMore>
               <ref name="contactLine"/>
            </oneOrMore>
         </group>
      </element>
   </define>
   <define name="geographicCoordinates">
      <element name="geographicCoordinates"
               ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <attribute name="coordinateSystem" ns="">
               <data type="token"
                     datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
            </attribute>
            <data type="normalizedString"
                  datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
         </group>
      </element>
   </define>
   <define name="fromDate">
      <element name="fromDate" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="calendar" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="certainty" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="era" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="notAfter" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="notBefore" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="standardDate" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="status" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <text/>
         </group>
      </element>
   </define>
   <define name="toDate">
      <element name="toDate" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="localType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <optional>
               <attribute name="localTypeDeclarationReference" ns="">
                  <data type="IDREFS"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="calendar" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="certainty" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="era" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="notAfter" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="notBefore" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="standardDate" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="status" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <text/>
         </group>
      </element>
   </define>
   <define name="addressLine">
      <element name="addressLine" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="addressLineType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <text/>
         </group>
      </element>
   </define>
   <define name="contactLine">
      <element name="contactLine" ns="https://standards.openpreservation.org/eac/v3">
         <group>
            <interleave>
               <optional>
                  <attribute name="audience" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="id" ns="">
                     <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="target" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <zeroOrMore>
                  <attribute>
                     <anyName>
                        <except>
                           <choice>
                              <nsName ns="https://standards.openpreservation.org/eac/v3"/>
                              <nsName ns=""/>
                           </choice>
                        </except>
                     </anyName>
                     <text/>
                  </attribute>
               </zeroOrMore>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="languageOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="scriptOfElement" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="conventionDeclarationReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="maintenanceEventReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="sourceReference" ns="">
                     <data type="IDREFS"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <interleave>
               <optional>
                  <attribute name="href" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="linkRole" ns="">
                     <data type="anyURI"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
               <optional>
                  <attribute name="linkTitle" ns="">
                     <data type="token"
                           datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
                  </attribute>
               </optional>
            </interleave>
            <optional>
               <attribute name="contactLineType" ns="">
                  <data type="token"
                        datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
               </attribute>
            </optional>
            <text/>
         </group>
      </element>
   </define>
</grammar>
