<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE rules SYSTEM "rules.dtd" [
<!-- Last modified 2005-01-26 ejshaw to correct address encoding analog -->

<!-- Last modified 2004-12-02 -->
	<!-- This file encodes the complex relationships and dependencies between elements and attributes as outlined in the RLG's best practice guidelines for Encoded Archival Description.
	Copyright (C) 2005 RLG
    http://www.rlg.org

    This program is free software; you can redistribute it
    and/or modify it under the terms of the Mozilla Public
    License available at http://www.mozilla.org/MPL/

    This program is distributed in the hope that it will be
    useful, but WITHOUT ANY WARRANTY; without even the implied
    warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
    PURPOSE.

-->
	<!-- This tests for single dates in form of YYYY-MM-DD
      inclusive dates in form of YYYY-MM-DD/YYYY-MM-DD
      single dates of YYYY-MM
      inclusive dates of YYYY-MM/YYYY-MM
      single dates of YYYY
      inclusive dates of YYYY/YYYY-->
	<!ENTITY normal "(number(substring-before(., '-')) &lt; 3000 and number(substring-before(substring-after(., '-'), '-')) &lt; 13 and number(substring-after(substring-after(., '-'), '-')) &lt; 31) 
or (number(substring-before(., '-')) &lt; 3000 and number(substring-before(substring-after(., '-'), '-')) &lt; 13 and number(substring-before(substring-after(substring-after(., '-'), '-'), '/')) &lt; 31 and number(substring-before(substring-after(., '/'), '-')) &lt; 3000 and number(substring-before(substring-after(substring-after(., '/'), '-'), '-')) &lt; 13 and number(substring-after(substring-after(substring-after(., '/'), '-'), '-')) &lt; 31)
or (number(substring-before(., '-')) &lt; 3000 and number(substring-after(., '-')) &lt; 13)  or ( number(substring-before(., '-')) &lt; 3000 and number(substring-before(substring-after(., '-'), '/')) &lt; 13 and number(substring-before(substring-after(., '/'), '-')) &lt; 3000) or  (number() &lt; 3000) or ( number(substring-before(., '/')) &lt; 3000 and number(substring-after(., '/')) &lt; 3000)">
]>
<?xml-stylesheet type="text/xsl" href="rulestransform.xsl"?>
<rules date="2004-08-01">
	<title>RLG Best Practice Guidelines for Encoded Archival Description</title>
	<group>
		<title>Table 1 &lt;ead&gt;, &lt;eadheader&gt;, &lt;frontmatter&gt;</title>
		<element path="ead/eadheader" status="Req" freq="single">
			<attribute name="langencoding" status="M">
				<values type="single">
					<value>iso639-2b</value>
				</values>
			</attribute>
			<attribute name="relatedencoding" status="M">
				<values type="multi">
					<value>MARC21</value>
					<value>DC</value>
					<value>Dublin Core</value>
				</values>
				<appnotes>Indicate a descriptive encoding system to which the &lt;eadheader&gt;
elements can be mapped. Since the intention of the &lt;eadheader&gt;
elements is to provide more robust and uniform discovery metadata,
Dublin Core may be the most appropriate system.</appnotes>
			</attribute>
			<attribute name="scriptencoding" status="MA">
				<values type="single">
					<value>iso15924</value>
				</values>
			</attribute>
			<attribute name="repositoryencoding" status="M">
				<values type="single">
					<value>iso15511</value>
				</values>
			</attribute>
			<attribute name="countryencoding" status="M">
				<values type="single">
					<value>iso3166-1</value>
				</values>
			</attribute>
			<attribute name="dateencoding" status="M">
				<values type="single">
					<value>iso8601</value>
				</values>
			</attribute>
		</element>
		<element path="ead/eadheader/eadid" status="Req" freq="single">
			<attribute name="countrycode" status="M">
				<values type="pattern" standard="iso3166-1">string-length()='2'</values>
				<appnotes>Use ISO 3166-1</appnotes>
			</attribute>
			<attribute name="mainagencycode" status="M">
				<values type="cdata"/>
				<appnotes>Use a repository code supplied by the Library of Congress, the
National Library of Canada (MARC Code List for Organizations), the
Historical Manuscripts Commission in the United Kingdom
(ARCHON), other code assigned by OCLC, by RLG, or by a national
authority. The code should be formulated according to ISO 15511. If
no appropriate national authority exists, a unique identifier of the host
system must be developed using ISO 15511.</appnotes>
			</attribute>
			<option type="oneof" status="M">
				<attribute name="publicid" status="MA">
					<values type="cdata"/>
				</attribute>
				<attribute name="identifier" status="MA">
					<values type="cdata"/>
				</attribute>
				<attribute name="url" status="MA">
					<values type="cdata"/>
				</attribute>
				<appnotes>The content of this element, together with its attributes, must
uniquely identify the EAD instance. The &lt;eadid&gt; should include at least one of the following attributes: publicid, identifier, url. See BPG for additional guidance. If using publicid, content is defined in ISO/IEC 9070:1991, intended to be universally
unique. If using identifier, content isa  machine-readable unique identifier. If using url, content should be expressed in absolute terms (e.g.,
http://www.loc.gov/ead/ms99999.xml).</appnotes>
			</option>
			<attribute name="encodinganalog" status="MA" test="/ead/eadheader/eadid/@url">
				<values type="multi">
					<value crosswalk="MARC21">856$u</value>
					<value crosswalk="DC">Identifier</value>
				</values>
				<appnotes>Use @encodinganalog when a URL exists.</appnotes>
			</attribute>
		</element>
		<element path="ead/eadheader/filedesc/titlestmt/titleproper" status="M" freq="single">
			<attribute name="encodinganalog" status="M">
				<values type="multi">
					<value crosswalk="MARC21">245$a</value>
					<value crosswalk="DC">Title</value>
				</values>
			</attribute>
			<appnotes>Use for the formal title of the finding aid itself and not the title of the fonds or record group being described.</appnotes>
		</element>
		<element path="ead/eadheader/filedesc/titlestmt/author" status="MA" freq="single">
			<attribute name="encodinganalog" status="M">
				<values type="multi">
					<value crosswalk="MARC21">245$c</value>
					<value crosswalk="DC">Creator</value>
					<value crosswalk="DC">Contributor</value>
				</values>
			</attribute>
			<appnotes>Record the name of the person or instituton responsible for the intellectual content of the encoded finding aid.</appnotes>
		</element>
		<element path="ead/eadheader/filedesc/publicationstmt/publisher" status="M" freq="single">
			<attribute name="encodinganalog" status="M">
				<values type="multi">
					<value crosswalk="MARC21">260$b</value>
					<value crosswalk="DC">Publisher</value>
				</values>
			</attribute>
		</element>
		<element path="ead/eadheader/filedesc/publicationstmt/date" status="M" freq="single">
			<attribute name="encodinganalog" status="M">
				<values type="multi">
					<value crosswalk="MARC21">260$c</value>
					<value crosswalk="DC">Date</value>
				</values>
			</attribute>
			<attribute name="normal" status="M">
				<values type="pattern" standard="iso8601">&normal;</values>
			</attribute>
		</element>
		<element path="ead/eadheader/filedesc/publicationstmt/address" status="Rec" freq="single">
<!--			<attribute name="encodinganalog" status="M">
				<values type="multi">
					<value crosswalk="MARC21">260$a</value>
				</values>
			</attribute>-->
			<appnotes>System entities must be resolved in a union environment.</appnotes>
		</element>
		<element path="ead/eadheader/filedesc/notestmt" status="Opt" freq="repeated">
			<attribute name="encodinganalog" status="M">
				<values type="multi">
					<value crosswalk="MARC21">500</value>
					<value crosswalk="MARC21">653</value>
					<value crosswalk="DC">Subject</value>
					<value crosswalk="DC">Description</value>
				</values>
			</attribute>
			<appnotes>May be used, per local conventions, for a variety of textual notes, especially to enrich available discovery metadata(see BPG p. 3)</appnotes>
		</element>
		<element path="ead/eadheader/profiledesc/creation" status="M" freq="single">
			<attribute name="encodinganalog" status="M">
				<values type="multi">
					<value crosswalk="MARC21">500</value>
				</values>
			</attribute>
			<appnotes>Statement recording facts about the encoding of the finding aid.</appnotes>
		</element>
		<element path="ead/eadheader/profiledesc/date" status="Rec" freq="single">
			<attribute name="normal" status="MA">
				<values type="pattern" standard="iso8601">&normal;</values>
			</attribute>
			<appnotes>Date of initial encoding into EAD</appnotes>
		</element>
		<element path="ead/eadheader/profiledesc/langusage/language" status="M" freq="single">
			<attribute name="encodinganalog" status="M">
				<values type="multi">
					<value crosswalk="MARC21">546</value>
					<value crosswalk="DC">Language</value>
				</values>
			</attribute>
			<attribute name="langcode" status="M">
				<values type="pattern" standard="iso639-2b">string-length()='3'</values>
			</attribute>
			<attribute name="scriptcode" status="MA">
				<values type="pattern" standard="iso15924">string-length()='4'</values>
			</attribute>
		</element>
		<element path="ead/eadheader/profiledesc/descrules" status="Opt" freq="single">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.7.2 Rules for conventsions</value>
				</values>
			</attribute>
		</element>
		<element path="ead/eadheader/revisiondesc/change" status="Rec" freq="repeated">
			<attribute name="encodinganalog" status="M">
				<values type="multi">
					<value crosswalk="MARC21">583</value>
				</values>
			</attribute>
		</element>
		<element path="/ead/eadheader/revisiondesc/change/item" status="Rec" freq="repeated" test="/ead/eadheader/revisiondesc/change">
            
</element>
		<element path="ead/eadheader/revisiondesc/change/date" status="Rec" freq="repeated" test="ead/eadheader/revisiondesc/change">
			<attribute name="normal" status="M">
				<values type="pattern" standard="iso8601">&normal;</values>
				<appnotes>Use a normalized date according to iso8601.</appnotes>
			</attribute>
		</element>
		<element path="ead/frontmatter" status="Opt" freq="single">
			<appnotes>&lt;eadheader&gt; is preferred as the source for titlepage information in union environments. &lt;frontmatter&gt; is reserved for local applications.</appnotes>
		</element>
	</group>
	<group>
		<title>Table 2 &lt;archdesc&gt;</title>
		<element path="ead/archdesc" status="M" freq="single">
			<attribute name="level" status="M">
				<values type="multi">
					<value>collection</value>
					<value>recordgrp</value>
				</values>
				<appnotes>Most commonly set as fonds(use collection or recordgroup as applicable). This element is
considered an essential element for data
exchange by ISAD(G)v2.</appnotes>
			</attribute>
			<attribute name="relatedencoding" status="M">
				<values type="multi">
					<value>MARC21</value>
					<value>DC</value>
					<value>Dublin Core</value>
					<value>ISAD(G)v2</value>
				</values>
				<appnotes>Indicate descriptive encoding system to which
the &lt;archdesc&gt; elements can be mapped. Since
&lt;archdesc&gt; elements describe the archival
materials, MARC 21 or ISAD(G)v2 may be the
most appropriate system.</appnotes>
			</attribute>
			<attribute name="type" status="Rec">
				<values type="cdata"/>
			</attribute>
		</element>
		<element path="ead/archdesc/did/origination" status="M" freq="single">
			<children status="Rec" include="oneof">
				<child>persname</child>
				<child>corpname</child>
				<child>famname</child>
				<child>name</child>
				<appnotes>Use appropriate name tag to indicate the type of
origination name.</appnotes>
			</children>
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.2.1</value>
					<value crosswalk="MARC21">100</value>
					<value crosswalk="MARC21">110</value>
					<value crosswalk="MARC21">111</value>
					<value crosswalk="DC">Creator</value>
				</values>
			</attribute>
			<appnotes>This element is considered an essential element
for data exchange by ISAD(G)v2.</appnotes>
		</element>
		<element path="ead/archdesc/did/unittitle" status="M" freq="single">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.2.2</value>
					<value crosswalk="MARC21">245$a</value>
					<value crosswalk="DC">Title</value>
				</values>
			</attribute>
			<appnotes>This element is considered an essential element
for data exchange by ISAD(G)v2.</appnotes>
		</element>
		<element path="ead/archdesc/did/unitdate" status="M" freq="single">
			<attribute name="type" status="M">
				<values type="cdata"/>
			</attribute>
			<attribute name="normal" status="M">
				<values type="pattern" standard="iso8601">&normal;</values>
				<appnotes>Use ISO 8601 to normalize dates to the extent they are known (see BPG p3-4)</appnotes>
			</attribute>
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.2.3</value>
					<value crosswalk="MARC21">245$f</value>
					<value crosswalk="MARC21">245$g</value>
					<value crosswalk="MARC21">260$c</value>
					<value crosswalk="DC">Coverage</value>
					<value crosswalk="DC">Date</value>
				</values>
				<appnotes>Use 245$f (inclusive or single) or 245$g (bulk) if materials are manuscripts(MARC "u" format) If materials are other than archives and personal paper collections use 260$c (MARC "g" format)</appnotes>
			</attribute>
			<attribute name="datechar" status="MA" test="../@encodinganalog='3.1.3'">
				<values type="cdata"/>
				<appnotes>Set values to indicate whether dates given are of creation or accumulation when ISAD(G)v2 encodinganalog is set to 3.1.3</appnotes>
			</attribute>
			<appnotes>US repositories following APPM practice
normally include &lt;unitdate&gt; as part of
&lt;unittitle&gt;, whereas British and Canadian
practice, following ISAD(G)v2 use &lt;unitdate&gt; at
the same level as &lt;unittitle&gt;. Given the
likelihood of further international standardization,
separate title and date is preferred but both
practices are permitted. Repeat &lt;unitdate&gt; if
both inclusive and bulk dates are given. This
element is considered an essential element for
data exchange by ISAD(G)v2.</appnotes>
		</element>
		<element path="ead/archdesc/did/physdesc/extent" status="M" freq="repeated">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.1.5</value>
					<value crosswalk="MARC21">300</value>
				</values>
			</attribute>
			<appnotes>Use multiple &lt;extent &gt; tage for multiple views, items, linear feet, etc. Units of measure should be epxressed either as part of the content of this tag or in a unit attribute. This element is considered an essential element for data exchange by ISAD(G)v2.</appnotes>
		</element>
		<element path="ead/archdesc/did/abstract" status="Rec" freq="single">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">Description</value>
					<value crosswalk="MARC21">520</value>
				</values>
			</attribute>
			<appnotes>Use for a brief summary of collection contents at the highest level, in addition to &lt;scopecontent&gt; for a fuller discussion.  At component level, use
&lt;scopecontent&gt; rather than &lt;abstract&gt;.</appnotes>
		</element>
		<element path="ead/archdesc/did/physloc" status="Opt" freq="single">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="MARC21">090</value>
					<value crosswalk="MARC21">852$z</value>
				</values>
			</attribute>
		</element>
		<element path="ead/archdesc/did/repository" status="M" freq="single">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="DC">Publisher</value>
					<value crosswalk="MARC21">852</value>
				</values>
			</attribute>
		</element>
		<element context=" archdesc repository corpname or name" path="ead/archdesc/did/repository/corpname|ead/archdesc/did/repository/name" status="Rec" freq="repeated" test="/ead/archdesc/did/repository">
</element>
		<element path="ead/archdesc/did/unitid" status="M" freq="single">
			<attribute name="countrycode" status="M">
				<values type="pattern" standard="iso3166-1">string-length()='2'</values>
				<appnotes>Use ISO 3166-1</appnotes>
			</attribute>
			<attribute name="repositorycode" status="M">
				<values type="cdata" standard="iso15511"/>
				<appnotes>Use ISO 15511</appnotes>
			</attribute>
		</element>
		<element path="ead/archdesc/did/langmaterial/language" status="M" freq="single">
			<attribute name="langcode" status="M">
				<values type="pattern" standard="iso639-2b">string-length()='3'</values>
			</attribute>
			<appnotes/>
		</element>
		<element path="ead/archdesc/did/note" status="Opt" freq="repeated">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="MARC21">500</value>
				</values>
			</attribute>
			<appnotes>This element is considered an essential element for data exchange by ISAD(G)v2.</appnotes>
		</element>
		<!--end of DID -->
		<element context="ead/archdesc//bioghist" path="ead/archdesc//bioghist[not(ancestor::dsc)]" status="M" freq="single">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.2.2</value>
					<value crosswalk="MARC21">545</value>
				</values>
			</attribute>
		</element>
		<element context="ead/archdesc//scopecontent" path="ead/archdesc//scopecontent[not(ancestor::dsc)]" status="M" freq="single">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.3.1</value>
					<value crosswalk="MARC21">520</value>
					<value crosswalk="DC">Description</value>
				</values>
			</attribute>
			<appnotes>If organization/arrangement can not readily be separated from scope note  give as part of &lt;scopecontent&gt;. If separable use &lt;arrangement&gt; and do not nest in &lt;scopecontent&gt;</appnotes>
		</element>
		<element context="ead/archdesc//arrangement" path="ead/archdesc//arrangement[not(ancestor::dsc)]" status="Rec" freq="single">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.3.4</value>
					<value crosswalk="MARC21">351</value>
				</values>
			</attribute>
			<appnotes>Use to encode the filing sequence of the
material (e.g., alphabetical or chronological)
and/or the manner in which the collection has
been ordered (e.g., organized into series).</appnotes>
		</element>
		<element context="ead/archdesc//controlaccess" path="ead/archdesc//controlaccess[not(ancestor::dsc)]" status="Rec" freq="single">
			<appnotes>Subelements are repeatable and should be
used if applicable.</appnotes>
		</element>
		<element context="ead/archdesc//controlaccess//corpname" path="ead/archdesc//controlaccess[not(ancestor::dsc)]//corpname" status="Rec" freq="repeated">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="MARC21">110</value>
					<value crosswalk="MARC21">111</value>
					<value crosswalk="MARC21">610</value>
					<value crosswalk="MARC21">611</value>
					<value crosswalk="MARC21">710</value>
					<value crosswalk="MARC21">711</value>
				</values>
			</attribute>
			<attribute name="source" status="Rec">
				<values type="cdata"/>
			</attribute>
			<attribute name="rules" status="Opt">
				<values type="cdata"/>
			</attribute>
		</element>
		<element context="ead/archdesc//controlaccess//persname" path="ead/archdesc//controlaccess[not(ancestor::dsc)]//persname" status="Rec" freq="repeated">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="MARC21">100</value>
					<value crosswalk="MARC21">600</value>
					<value crosswalk="MARC21">700</value>
				</values>
			</attribute>
			<attribute name="source" status="Rec">
				<values type="cdata"/>
			</attribute>
			<attribute name="rules" status="Opt">
				<values type="cdata"/>
			</attribute>
		</element>
		<element context="ead/archdesc//controlaccess//geogname" path="ead/archdesc//controlaccess[not(ancestor::dsc)]//geogname" status="Rec" freq="repeated">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="MARC21">651</value>
				</values>
			</attribute>
			<attribute name="source" status="Rec">
				<values type="cdata"/>
			</attribute>
			<attribute name="rules" status="Opt">
				<values type="cdata"/>
			</attribute>
		</element>
		<element context="ead/archdesc//controlaccess//famname" path="ead/archdesc//controlaccess[not(ancestor::dsc)]//famname" status="Rec" freq="repeated">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="MARC21">100</value>
					<value crosswalk="MARC21">600</value>
				</values>
			</attribute>
			<attribute name="source" status="Rec">
				<values type="cdata"/>
			</attribute>
			<attribute name="rules" status="Opt">
				<values type="cdata"/>
			</attribute>
		</element>
		<element context="ead/archdesc//controlaccess//subject" path="ead/archdesc//controlaccess[not(ancestor::dsc)]//subject" status="Rec" freq="repeated">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="MARC21">650</value>
					<value crosswalk="ISAD-G-v2">Subject</value>
				</values>
			</attribute>
			<attribute name="source" status="Rec">
				<values type="cdata"/>
			</attribute>
			<attribute name="rules" status="Opt">
				<values type="cdata"/>
			</attribute>
		</element>
		<element context="ead/archdesc//controlaccess//genreform" path="ead/archdesc//controlaccess[not(ancestor::dsc)]//genreform" status="Rec" freq="repeated">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="MARC21">655</value>
				</values>
			</attribute>
			<attribute name="source" status="Rec">
				<values type="cdata"/>
			</attribute>
			<attribute name="rules" status="Opt">
				<values type="cdata"/>
			</attribute>
		</element>
		<element context="ead/archdesc//controlaccess//occupation" path="ead/archdesc//controlaccess[not(ancestor::dsc)]//occupation" status="Rec" freq="repeated">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="MARC21">656</value>
				</values>
			</attribute>
			<attribute name="source" status="Rec">
				<values type="cdata"/>
			</attribute>
			<attribute name="rules" status="Opt">
				<values type="cdata"/>
			</attribute>
		</element>
		<element context="ead/archdesc//controlaccess//function" path="ead/archdesc//controlaccess[not(ancestor::dsc)]//function" status="Rec" freq="repeated">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="MARC21">657</value>
				</values>
			</attribute>
			<attribute name="source" status="Rec">
				<values type="cdata"/>
			</attribute>
			<attribute name="rules" status="Opt">
				<values type="cdata"/>
			</attribute>
		</element>
		<element context="ead/archdesc//controlaccess//title" path="ead/archdesc//controlaccess[not(ancestor::dsc)]//title" status="Rec" freq="repeated">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="MARC21">130</value>
					<value crosswalk="MARC21">630</value>
					<value crosswalk="MARC21">730</value>
				</values>
			</attribute>
			<attribute name="source" status="Rec">
				<values type="cdata"/>
			</attribute>
			<attribute name="rules" status="Opt">
				<values type="cdata"/>
			</attribute>
		</element>
		<element context="ead/archdesc//accessrestrict" path="ead/archdesc//accessrestrict[not(ancestor::dsc)]" status="MA" freq="single">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.4.1</value>
					<value crosswalk="MARC21">506</value>
				</values>
			</attribute>
			<appnotes>Use for conditions governing access.</appnotes>
		</element>
		<element context="ead/archdesc/accruals" path="ead/archdesc//accruals[not(ancestor::dsc)]" status="Rec" freq="single">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.3.3</value>
					<value crosswalk="MARC21">584</value>
				</values>
			</attribute>
		</element>
		<element context="ead/archdesc//acqinfo" path="ead/archdesc//acqinfo[not(ancestor::dsc)]" status="Rec" freq="single">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.2.4</value>
					<value crosswalk="MARC21">584</value>
				</values>
			</attribute>
		</element>
		<element context="ead/archdesc//altformavail" path="ead/archdesc//altformavail[not(ancestor::dsc)]" status="Rec" freq="single">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.5.2</value>
					<value crosswalk="MARC21">530</value>
				</values>
			</attribute>
		</element>
		<element context="ead/archdesc//appraisal" path="ead/archdesc//appraisal[not(ancestor::dsc)]" status="Rec" freq="single">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.3.2</value>
					<value crosswalk="MARC21">583$a</value>
				</values>
			</attribute>
		</element>
		<element context="ead/archdesc//custodhist" path="ead/archdesc//custodhist[not(ancestor::dsc)]" status="Rec" freq="single">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.2.3</value>
					<value crosswalk="MARC21">561</value>
				</values>
			</attribute>
		</element>
		<element context="ead/archdesc//prefercite" path="ead/archdesc//prefercite[not(ancestor::dsc)]" status="Rec" freq="single">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="MARC21">524</value>
				</values>
			</attribute>
		</element>
		<element context="ead/archdesc//processinfo" path="ead/archdesc//processinfo[not(ancestor::dsc)]" status="Rec" freq="single">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="MARC21">583</value>
					<value crosswalk="MARC21">500</value>
				</values>
			</attribute>
		</element>
		<element context="ead/archdesc//userestrict" path="ead/archdesc//userestrict[not(ancestor::dsc)]" status="Rec" freq="single">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.4.2</value>
					<value crosswalk="MARC21">540</value>
				</values>
				<appnotes>Use for conditions governing use.</appnotes>
			</attribute>
		</element>
		<element context="ead/archdesc//relatedmaterial" path="ead/archdesc//relatedmaterial[not(ancestor::dsc)]" status="Rec" freq="single">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.5.3</value>
					<value crosswalk="MARC21">544 1</value>
				</values>
			</attribute>
		</element>
		<element context="ead/archdesc//separatedmaterial" path="ead/archdesc//separatedmaterial[not(ancestor::dsc)]" status="Rec" freq="single">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.5.3</value>
					<value crosswalk="MARC21">544 0</value>
				</values>
			</attribute>
		</element>
		<element context="ead/archdesc//otherfindaid" path="ead/archdesc//otherfindaid[not(ancestor::dsc)]" status="Opt" freq="single">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.4.5</value>
					<value crosswalk="MARC21">555</value>
				</values>
			</attribute>
		</element>
		<element context="ead/archdesc//bibliography" path="ead/archdesc//bibliography[not(ancestor::dsc)]" status="Opt" freq="single">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.5.4</value>
				</values>
			</attribute>
		</element>
		<element context="ead/archdesc//odd" path="ead/archdesc//odd[not(ancestor::dsc)]" status="Opt" freq="single">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.6.1</value>
					<value crosswalk="MARC21">500</value>
				</values>
			</attribute>
		</element>
		<element context="ead/archdesc//originalsloc" path="ead/archdesc//originalsloc[not(ancestor::dsc)]" status="Opt" freq="repeated">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.5.1</value>
					<value crosswalk="MARC21">355</value>
				</values>
			</attribute>
		</element>
		<element context="ead/archdesc//phystech" path="ead/archdesc//phystech[not(ancestor::dsc)]" status="Opt" freq="repeated">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.4.4</value>
					<value crosswalk="MARC21">340</value>
					<value crosswalk="MARC21">538</value>
				</values>
			</attribute>
		</element>
	</group>
	<group>
		<title>Table 3 &lt;dsc&gt;</title>
		<element path="ead/archdesc/dsc" status="MA" freq="repeated">
			<attribute name="type" status="Req">
				<values type="single">
					<value>combined</value>
				</values>
				<appnotes>Type="combined" recormmended (description and detailed listing of components combined in a singe &lt;dsc&gt;</appnotes>
			</attribute>
			<appnotes>Single &lt;dsc&gt; model should be used with nested
components in which descriptions for subfonds, series,
subseries, file, and item are placed at the appropriate level
in the component hierarchy.</appnotes>
		</element>
		<element context="c/c0x" path="//c01|//c02|//c03|//c04|//c05|//c06|//c07|//c08|//c09|//c10|//c11|//c12|//c" status="M" freq="repeated">
			<attribute name="level" status="Req">
				<values type="cdata"/>
				<appnotes>The levels of the components should be subordinate to the
level set for in &lt;archdesc&gt; (see BPG "Archival Levels," page 6).
This element is considered an essential element for data
exchange by ISAD(G)v2.</appnotes>
			</attribute>
			<appnotes>Numbered and unnumbered components are functionally
equivalent. Use of the numbered components may provide
a more readily intelligible view of the nested structure to the
human eye and may make machine manipulation easier.
Only one of the options can be used in a given &lt;dsc&gt;.
Institutions are urged to adopt one model or the other as
standard practice. Nested &lt;c&gt;/&lt;c0x&gt;s should be used as
needed to reflect the intellectual structure of the archival
materials. The full suite of subelements and attributes
described are available at each component level.</appnotes>
		</element>
		<element context="c/c0x did" path="//dsc//did" status="M" freq="repeated">
			<children status="M" include="all">
				<child>unittitle</child>
			</children>
			<children status="MA" include="include">
				<child>unitid</child>
				<child>origination</child>
				<child>langmaterial/language</child>
			</children>
			<children status="Rec" include="include">
				<child>unitdate</child>
				<child>physdesc/extent</child>
			</children>
		</element>
		<element context="c/c0x did/origination" path="ead/archdesc/dsc//did/origination" status="MA" freq="repeated">
			<children status="Rec" include="oneof">
				<child>persname</child>
				<child>corpname</child>
				<child>famname</child>
				<child>name</child>
				<appnotes>Use appropriate name tag to indicate the type of originations name.</appnotes>
			</children>
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.2.1</value>
					<value crosswalk="MARC21">100</value>
					<value crosswalk="MARC21">110</value>
					<value crosswalk="MARC21">111</value>
					<value crosswalk="DC">Creator</value>
				</values>
			</attribute>
			<appnotes>Mandatory if creator at level being described is different than defined at the &lt;archdesc&gt; or in a parent level. This element is considered an essential element for data exchange by ISAD(G)v2.</appnotes>
		</element>
		<element context="component unitids" path="ead/archdesc/dsc//unitid" status="MA" freq="repeated">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.1.1</value>
					<value crosswalk="MARC21">050</value>
					<value crosswalk="MARC21">090</value>
					<value crosswalk="MARC21">099</value>
					<value crosswalk="DC">Identifier</value>
				</values>
			</attribute>
			<attribute name="countrycode" status="MA">
				<values type="pattern" standard="iso3166-1">string-length()='2'</values>
				<appnotes>Use ISO 3166-1</appnotes>
			</attribute>
			<attribute name="repositorycode" status="MA">
				<values type="cdata" standard="iso15511"/>
				<appnotes>Use ISO 15511</appnotes>
			</attribute>
			<appnotes>All units of a description should be given a unique identifier.
While optional, it is recommended that, if a unique
identifying number or filing code is present, it should be
encoded as &lt;unitid&gt; rather than &lt;container&gt; or &lt;unittitle&gt;.
This element is considered an essential element for data
exchange by ISAD(G)v2.</appnotes>
		</element>
		<element context="component unittitle" path="ead/archdesc/dsc//did/unittitle" status="Rec" freq="repeated" test="@level='subfonds' or @level='subgroup' or @level='series'">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.2.2</value>
					<value crosswalk="MARC21">245$a</value>
					<value crosswalk="DC">Title</value>
				</values>
			</attribute>
			<appnotes>Considered the minimum for description at component levels because some description is needed for users to decide if documents are worthy of further investigation. This element is considered an essential element for data exchange by ISAD(G)v2.</appnotes>
		</element>
		<element context=" component unitdate" path="//dsc//unitdate" status="M" freq="repeated">
			<attribute name="type" status="Opt">
				<values type="cdata"/>
				<appnotes>Used to distinquish inclusive and bulk dates.</appnotes>
			</attribute>
			<attribute name="normal" status="Rec">
				<values type="pattern" standard="iso8601">&normal;</values>
				<appnotes>To aid in searching by date; use ISO 8601 (see the BPG
Introduction, page 3-4, for examples).</appnotes>
			</attribute>
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.2.3</value>
					<value crosswalk="MARC21">245$f</value>
					<value crosswalk="MARC21">245$g</value>
					<value crosswalk="MARC21">260$c</value>
					<value crosswalk="DC">Coverage</value>
					<value crosswalk="DC">Date</value>
				</values>
			</attribute>
			<appnotes>Recommended if a more specific creation date can be
provided for a component than given in its parent. Such
entries provide for fuller description of a unit for users and
facilitate more effective searching by date. If multiple single
dates or date ranges are present, each should be encoded
in its own &lt;unitdate&gt;. Where no &lt;unittitle&gt; content exists,
&lt;unitdate&gt; may be placed within &lt;unittitle&gt; so that there is
some title-related content. This element is considered an
essential element for data exchange by ISAD(G)v2.</appnotes>
		</element>
		<element context="component physdesc/extent" path="ead/archdescdsc/did//physdesc/extent" status="Rec" freq="repeated">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.1.5</value>
					<value crosswalk="MARC21">300</value>
				</values>
			</attribute>
			<appnotes>If extent data is present, it should be encoded here rather than being incorporated into &lt;unittitle&gt; or another element.  Units of measure should be epxressed either as part of the content of this tag or in a unit attribute. This element is considered an essential element for data exchange by ISAD(G)v2.</appnotes>
		</element>
		<element context="component phystech" path="ead/archdesc/dsc//phystech" status="Opt" freq="repeated">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.4.4</value>
					<value crosswalk="MARC21">340</value>
					<value crosswalk="MARC21">538</value>
				</values>
			</attribute>
		</element>
		<element context="component langmaterial/lanuage" path="ead/archdesc/dsc//did/langmaterial/language" status="MA" freq="repeated">
			<attribute name="langcode" status="M">
				<values type="pattern" standard="iso639-2b">string-length()='3'</values>
				<appnotes>Use ISO 639-2.</appnotes>
			</attribute>
			<appnotes>If the material being described is in a language different from that specified in the langmaterial attribute in &lt;archdesc&gt;, use at the componet level.</appnotes>
		</element>
		<element context="ead/archdesc//scopecontent" path="ead/archdesc//scopecontent[not(ancestor::dsc)]" status="M" freq="single">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.3.1</value>
					<value crosswalk="MARC21">520</value>
					<value crosswalk="DC">Description</value>
				</values>
			</attribute>
			<appnotes> At appropriate component levels(subgroup/subfonds,series) components should include scope and content information. Other levels may include scope and content notes as needed. Use of &lt;scopecontent&gt; is preferred over &lt;abstract&gt;.</appnotes>
		</element>
		<element context="component userestrict" path="ead/archdesc/dsc//userestrict" status="MA" freq="repeated">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.4.2</value>
					<value crosswalk="MARC21">540</value>
				</values>
			</attribute>
			<appnotes>Mandatory if there are particular conditions, such as copyright, governing use. </appnotes>
		</element>
		<element context="component accessrestrict" path="ead/archdesc/dsc//accessrestrict" status="MA" freq="repeated">
			<attribute name="encodinganalog" status="Rec">
				<values type="multi">
					<value crosswalk="ISAD-G-v2">3.4.1</value>
					<value crosswalk="MARC21">506</value>
				</values>
			</attribute>
			<appnotes>Mandatory if particular conditions govern access.</appnotes>
		</element>
	</group>
	<group>
		<title>Item Level, Linking</title>
		<element context="item level daogrp" path="//daogrp" status="Rec" freq="repeated">
			<tests status="M" include="oneof">
				<test>../unittitle</test>
				<test>../unitid</test>
				<appnotes>One of &lt;did&gt;&lt;unittitle&gt; or &lt;did&gt;&lt;unitid&gt; is required if the other is not available when linking to digital archive content.</appnotes>
			</tests>
			<tests status="M" include="all">
				<test>../../@level='item'</test>
				<appnotes> The level attribute of the &lt;c&gt;/ &lt;c0x&gt; should be set to 'item'  when linking to digital archive content .</appnotes>
			</tests>
			<children status="Req" include="all">
				<child>daoloc</child>
				<appnotes>&lt;daoloc&gt; is required in &lt;daogrp&gt;.</appnotes>
			</children>
			<children status="Rec" include="include">
				<child>daodesc</child>
				<appnotes>Use if human-readable description of complex digital object is required
and not provided by &lt;unittitle&gt;</appnotes>
			</children>
			<appnotes>Required for linking to digital archival objects (see "Digital Objects and
Linking Elements,” page 4).</appnotes>
		</element>
		<element context="item level daoloc" path="//daoloc" status="Req" freq="repeated" test="//daogrp">
			<option type="oneof" status="Rec">
				<attribute name="entityref" status="MA">
					<values type="cdata"/>
				</attribute>
				<attribute name="href" status="MA">
					<values type="cdata"/>
				</attribute>
				<appnotes>Use of either entityref or href is mandatory. Use to link to an entity that contains the
actual link to an external digital object. Xlink and xpointer are not
commonly used.</appnotes>
			</option>
			<attribute name="role" status="Rec">
				<values type="cdata"/>
				<appnotes>Use to indicate the nature of the linked object (JPEG, XML, SGML,
video) by MIME type.</appnotes>
			</attribute>
			<!--	 Although guidelines discuss this attribute it is not available on daogrp, daodesc or daoloc	<attribute name="encodinganalog" status="MA" test="@href">
				<values type="multi">
					<value crosswalk="MARC21">856$3</value>
									</values>
				<appnotes>Use @encodinganalog when a URL exists.</appnotes>
			</attribute> -->
			<appnotes>Required for linking to digital archival objects (see "Digital Objects and
Linking Elements,” page 4).</appnotes>
		</element>
		<!-- element daodesc is tested in daogrp children elements -->
	</group>
</rules>

