<!-- UArchives Stylesheet February 2004  -->

<!--  This stylesheet generates a Table of Contents in an HTML table cell along the left side of the screen.  -->


<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
 
<xsl:strip-space elements="*"/>

<!-- Creates the body of the finding aid.-->
<xsl:template match="/">
<xsl:variable name="file">
<xsl:value-of select="ead/eadheader/eadid"/>
</xsl:variable>
<html>
<head>
<style>
P.toc {font-family: "sans-serif"; font-weight: bold; font-size: 75%}
P.rtoc {font-family: "sans-serif"; font-size: 65%; text-align: right}
P.seriestoc {font-family: "sans-serif"; font-size: 65%}
h1 {font-family: "sans-serif"; font-weight:bold; font-size: 175%}
h2 {font-family: "sans-serif"; font-weight:bold; font-size: 125%}
h3 {font-family: "sans-serif"; font-weight:bold; font-size: 100%}
h4 {font-family: "sans-serif"; font-size: 100%}
h5 {font-family: "sans-serif"; font-weight: bold; font-size: 75%}
</style>

<title>
<xsl:value-of select="ead/eadheader/filedesc/titlestmt"/>
</title>
</head>

<body>


<!-- top design -->

<table width="725" align="center" cellspacing="0" cellpadding="1" border="0">

<tr> <td bgcolor="#993333" height="18"> 

      <div align="center"><b><font face="sans-serif" color="#ffffff" size="3">University of Minnesota Archives </font></b></div>

    </td>

  </tr>



<tr> 

    <td align="center" width="710"><font size="2" face="sans-serif" color="#993333">218 Elmer L. Andersen Library, University of Minnesota, 222 21st Avenue South, Minneapolis, 

      MN 55455</font></td>

  </tr>

<tr><td width="725"></td></tr>



<tr><td><xsl:call-template name="eadheader"/></td></tr>

<tr><td><table cellpadding="5">





<!-- table for toc and finding aid text -->



<tr><td width="50"></td><td width="675"></td></tr>
<tr>
<td valign="top" bgcolor="#FEF0D3"><xsl:call-template name="toc"/></td>
<td valign="top" bgcolor="#FFFFFF"><xsl:call-template name="body"/></td>
</tr></table></td></tr></table>



</body>
</html>
</xsl:template>




 



<xsl:template name="eadheader">

<xsl:for-each select="ead/eadheader/filedesc/titlestmt">

<center><a name="a0"></a></center>

<br/>

<h1><center>

<xsl:value-of select="titleproper"/> 

<xsl:text> </xsl:text>

<xsl:value-of select="subtitle"/>

</center></h1>

<font size="-1"><center>Finding aid written by: 

<xsl:value-of select="author"/>

</center></font>

</xsl:for-each>

<hr/>

</xsl:template>




<!-- top of Table of Contents -->



<xsl:template name="toc">
<xsl:variable name="file">
<xsl:value-of select="ead/eadheader/eadid"/>
</xsl:variable>

<br/>

<!-- A series of tests determine which elements will be included in the table of contents.-->
<xsl:if test="ead/archdesc/did">
<p class="toc"><b><a href="#a1">
<xsl:value-of select="ead/archdesc/did/head"/>
</a></b></p>
</xsl:if>

<xsl:if test="ead/archdesc/bioghist[string-length(text()|*)!=0]">
<p class="toc" style="margin-top:-5pt">
<b>
<a href="#a2">
<xsl:value-of select="ead/archdesc/bioghist/head"/>
</a>
</b></p>
</xsl:if>

<xsl:if test="ead/archdesc/scopecontent[string-length(text()|*)!=0]">
<p class="toc" style="margin-top:-5pt"><b>
<a href="#a3">
<xsl:value-of select="ead/archdesc/scopecontent/head"/>
</a></b></p>
</xsl:if>

<xsl:if test="ead/archdesc/organization[string-length(text()|*)!=0]">
<p class="toc" style="margin-top:-5pt"><b>
<a href="#a4">
<xsl:value-of select="ead/archdesc/organization/head"/>
</a></b></p>
</xsl:if>

<xsl:if test="ead/archdesc/descgrp/userestrict[string-length(text()|*)!=0] | ead/archdesc/descgrp/accessrestrict[string-length(text()|*)!=0]">
<p class="toc" style="margin-top:-5pt"><b>
<a href="#a14">
<xsl:text>Restrictions</xsl:text>
</a></b></p>
</xsl:if>

<xsl:if test="ead/archdesc/controlaccess[string-length(text()|*)!=0]">
<p class="toc" style="margin-top:-5pt"><b>
<a href="#a12">
<xsl:value-of select="ead/archdesc/controlaccess/head"/>
</a></b></p>
</xsl:if>

<xsl:if test="ead/archdesc/relatedmaterial[string-length(text()|*)!=0] | ead/archdesc/separatedmaterial[string-length(text()|*)!=0]">
<p class="toc" style="margin-top:-5pt"><b>
<a href="#a6">
Related Material
</a></b></p>
</xsl:if>

<xsl:if test="ead/archdesc/descgrp[string-length(text()|*)!=0] | ead/archdesc/processinfo[string-length(text()|*)!=0] |  ead/archdesc/prefercite[string-length(text()|*)!=0] | ead/archdesc/custodialhist[string-length(text()|*)!=0] | ead/archdesc/altformavailable | ead/archdesc/admininfo/appraisal | ead/archdesc/accruals[string-length(text()|*)!=0]">
<p class="toc" style="margin-top:-5pt"><b>
<a href="#a13">
Administrative Information
</a></b></p>
</xsl:if>

<xsl:if test="ead/archdesc/otherfindaid[string-length(text()|*)!=0]">
<p class="toc" style="margin-top:-5pt"><b>
<a href="#a8">
<xsl:value-of select="ead/archdesc/otherfindaid/head"/>
</a></b></p>
</xsl:if>

<xsl:if test="ead/archdesc/odd[string-length(text()|*)!=0]">
<p class="toc" style="margin-top:-5pt"><b>
<a href="#a11">
<xsl:value-of select="ead/archdesc/odd/head"/>
</a></b></p>
</xsl:if>

<xsl:if test="ead/archdesc/bibliography[string-length(text()|*)!=0]">
<p class="toc" style="margin-top:-5pt"><b>
<a href="#a10">
<xsl:value-of select="ead/archdesc/bibliography/head"/>
</a></b></p>
</xsl:if>

<xsl:if test="ead/archdesc/index[string-length(text()|*)!=0]">
<p class="toc" style="margin-top:-5pt"><b>
<a href="#a9">
<xsl:value-of select="ead/archdesc/index/head"/>
</a></b></p>
</xsl:if>


<xsl:if test="ead/archdesc/dsc[string-length(text()|*)!=0]">
<a href="#a23">
<p class="toc" style="margin-top:-5pt">
<b>
<xsl:value-of select="ead/archdesc/dsc/head"/>
</b></p>
</a>

<!-- Displays the title and date of each series and numbers
 them to form a hyperlink to them.-->
<xsl:for-each select="ead/archdesc/dsc/c01[@level='series']">
<p class="seriestoc" style="margin-left:10pt; margin-top:-5pt"><b>
<a>
<xsl:attribute name="href">
#series<xsl:number value="position()" format="1"/>
</xsl:attribute>
<xsl:choose>
<xsl:when test="did/unittitle/unitdate">
<xsl:for-each select="did/unittitle">
<xsl:value-of select="text()"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="./unitdate"/>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="did/unittitle"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="did/unitdate"/>
</xsl:otherwise>
</xsl:choose>
</a>
</b></p>
</xsl:for-each>

</xsl:if>
</xsl:template>







<xsl:template name="body">
<xsl:variable name="file">
<xsl:value-of select="ead/eadheader/eadid"/>

</xsl:variable>

<html>

<head>

<title>

<xsl:value-of select="ead/eadheader/filedesc/titlestmt"/>

</title>


</head>

<body bgcolor="#FFFFFF">


<xsl:call-template name="archdesc-did"/>
<xsl:call-template name="archdesc-bioghist"/>
<xsl:call-template name="archdesc-scopecontent"/>
<xsl:call-template name="archdesc-restrict"/>
<xsl:call-template name="archdesc-control"/>
<xsl:call-template name="archdesc-admininfo"/>

<xsl:call-template name="archdesc-relatedmaterial"/>
<xsl:call-template name="archdesc-otherfindaid"/>

<xsl:call-template name="archdesc-index"/>

<xsl:call-template name="archdesc-odd"/>

<xsl:call-template name="archdesc-bibliography"/>
<xsl:call-template name="archdesc-arrangement"/>
<xsl:call-template name="dsc"/>
<xsl:call-template name="end"/></body>
</html>
</xsl:template>

<!-- The following templates format the display of various RENDER attributes.-->

<xsl:template match="emph[@render='bold']">
	<b>
		<xsl:apply-templates/>
	</b>
</xsl:template>

<xsl:template match="emph[@render='italic']">
	<i>
		<xsl:apply-templates/>
	</i>
</xsl:template>

<xsl:template match="emph[@render='underline']">
	<u>
		<xsl:apply-templates/>
	</u>
</xsl:template>

<xsl:template match="emph[@render='sub']">
	<sub>
		<xsl:apply-templates/>
	</sub>
</xsl:template>

<xsl:template match="emph[@render='super']">
	<super>
		<xsl:apply-templates/>
	</super>
</xsl:template>

<xsl:template match="emph[@render='doublequote']">
	<xsl:text>"</xsl:text>
		<xsl:apply-templates/>
	<xsl:text>"</xsl:text>
</xsl:template>

<xsl:template match="emph[@render='boldquoted']">
	<b>
		<xsl:text>"</xsl:text>
			<xsl:apply-templates/>
		<xsl:text>"</xsl:text>
	</b>
</xsl:template>

<xsl:template match="emph[@render='boldunderline']">
	<b>
		<u>
			<xsl:apply-templates/>
		</u>
	</b>
</xsl:template>

<xsl:template match="emph[@render='bolditalic']">
	<b>
		<i>
			<xsl:apply-templates/>
		</i>
	</b>
</xsl:template>

<xsl:template match="emph[@render='boldsmcaps']">
	<font style="font-variant: small-caps">
		<b>
			<xsl:apply-templates/>
		</b>
	</font>
</xsl:template>

<xsl:template match="emph[@render='smcaps']">
	<font style="font-variant: small-caps">
		<xsl:apply-templates/>
	</font>
</xsl:template>

<xsl:template match="title[@render='bold']">
	<b>
		<xsl:apply-templates/>
	</b>
</xsl:template>

<xsl:template match="title[@render='italic']">
	<i>
		<xsl:apply-templates/>
	</i>
</xsl:template>

<xsl:template match="title[@render='underline']">
	<u>
		<xsl:apply-templates/>
	</u>
</xsl:template>

<xsl:template match="title[@render='sub']">
	<sub>
		<xsl:apply-templates/>
	</sub>
</xsl:template>

<xsl:template match="title[@render='super']">
	<super>
		<xsl:apply-templates/>
	</super>
</xsl:template>

<xsl:template match="title[@render='quoted']">
	<xsl:text>"</xsl:text>
		<xsl:apply-templates/>
	<xsl:text>"</xsl:text>
</xsl:template>

<xsl:template match="title[@render='boldquoted']">
	<b>
		<xsl:text>"</xsl:text>
			<xsl:apply-templates/>
		<xsl:text>"</xsl:text>
	</b>
</xsl:template>

<xsl:template match="title[@render='boldunderline']">
	<b>
		<u>
			<xsl:apply-templates/>
		</u>
	</b>
</xsl:template>

<xsl:template match="title[@render='bolditalic']">
	<b>
		<i>
			<xsl:apply-templates/>
		</i>
	</b>
</xsl:template>

<xsl:template match="title[@render='boldsmcaps']">
	<font style="font-variant: small-caps">
		<b>
			<xsl:apply-templates/>
		</b>
	</font>
</xsl:template>

<xsl:template match="title[@render='smcaps']">
	<font style="font-variant: small-caps">
		<xsl:apply-templates/>
	</font>
</xsl:template>


<!-- This template converts a Ref element into an HTML anchor.-->

<xsl:template match="ead/archdesc//ref">
<xsl:variable name="target">
<xsl:value-of select="@target"/>
</xsl:variable>
<a href="#{$target}">
<xsl:value-of select="."/>
</a>
</xsl:template>

<!--This template rule formats a list element.-->
<xsl:template match="*/list">
<xsl:for-each select="item">
<p style="margin-left: 60pt">
<xsl:apply-templates/>
</p>
</xsl:for-each>
</xsl:template>

<!--Formats a simple table. The width of each column is defined by the colwidth attribute in a colspec element.-->
<xsl:template match="*/table">
<xsl:for-each select="tgroup">
<table width="100%">
<tr>
<xsl:for-each select="colspec">
<td width="{@colwidth}"></td>
</xsl:for-each>
</tr>
<xsl:for-each select="thead">
<xsl:for-each select="row">
<tr>
<xsl:for-each select="entry">
<td valign="top"><b><xsl:value-of select="."/></b>
</td>
</xsl:for-each>
</tr>
</xsl:for-each>
</xsl:for-each>

<xsl:for-each select="tbody">
<xsl:for-each select="row">
<tr>
<xsl:for-each select="entry">
<td valign="top"><xsl:value-of select="."/></td>
</xsl:for-each>
</tr>
</xsl:for-each>
</xsl:for-each>
</table>
</xsl:for-each>
</xsl:template>


<!--This template rule formats the top-level did element.-->
<xsl:template name="archdesc-did">
<xsl:variable name="file">
<xsl:value-of select="ead/eadheader/eadid"/>
</xsl:variable>


<!--For each element of the did, this template inserts the value of the LABEL attribute or, if none is present, a default value.-->


<xsl:for-each select="ead/archdesc/did">
<table width="100%">
<tr><td width="5%"> </td><td width="20%"> </td>
<td width="75"> </td></tr>
<tr><td colspan="3"><h3><a name="a1">
<xsl:text>Collection Summary</xsl:text>
</a></h3> </td></tr>

<xsl:if test="origination[string-length(text()|*)!=0]">
<xsl:for-each select="origination">
<xsl:choose>
<xsl:when test="@label">
<tr><td> </td><td valign="top">
<b><xsl:value-of select="@label"/>
</b></td><td>
<xsl:apply-templates select="."/>
</td></tr>
</xsl:when>
<xsl:otherwise>
<tr><td> </td><td valign="top">
<b><xsl:text>Creator: </xsl:text></b></td><td>
<xsl:apply-templates select="."/>
</td></tr>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:if>

<!-- Tests for and processes various permutations of unittitle and unitdate.-->
<xsl:for-each select="unittitle">
<xsl:choose>
<xsl:when test="@label">
<tr><td> </td><td valign="top"><b>
<xsl:value-of select="@label"/>
</b></td><td>
<xsl:apply-templates select="text() |* [not(self::unitdate)]"/>
</td></tr>
</xsl:when>
<xsl:otherwise>
<tr><td> </td><td valign="top"><b>
<xsl:text>Title: </xsl:text>
</b></td><td>
<xsl:apply-templates select="text() |* [not(self::unitdate)]"/>
</td></tr>
</xsl:otherwise>
</xsl:choose>

<xsl:if test="child::unitdate">
<xsl:choose>
<xsl:when test="./unitdate/@label">
<tr><td> </td><td valign="top">
<b>
<xsl:value-of select="./unitdate/@label"/>
</b></td><td>
<xsl:apply-templates select="./unitdate"/>
</td></tr>
</xsl:when>
<xsl:otherwise>
<tr><td> </td><td valign="top">
<b>
<xsl:text>Dates: </xsl:text>
</b></td><td>
<xsl:apply-templates select="./unitdate"/>
</td></tr>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:for-each>

<!-- Processes the unit date if it is not a child of unit title but a child of did, the current context.-->
<xsl:if test="unitdate">
<xsl:for-each select="unitdate[string-length(text()|*)!=0]">
<xsl:choose>
<xsl:when test="./@label">
<tr><td> </td><td valign="top">
<b>
<xsl:value-of select="./@label"/>
</b></td><td>
<xsl:apply-templates select="."/>
</td></tr>
</xsl:when>
<xsl:otherwise>
<tr><td> </td><td valign="top">
<b>
<xsl:text>Dates: </xsl:text>
</b></td><td>
<xsl:apply-templates select="."/>
</td></tr>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:if>

<xsl:if test="abstract[string-length(text()|*)!=0]">
<xsl:choose>
<xsl:when test="@label">
<tr><td> </td><td valign="top">
<b><xsl:value-of select="@label"/>
</b></td><td>
<xsl:apply-templates select="abstract"/>
</td></tr>
</xsl:when>
<xsl:otherwise>
<tr><td> </td><td valign="top">
<b><xsl:text>Abstract: </xsl:text></b></td><td>
<xsl:apply-templates select="abstract"/>
</td></tr>
</xsl:otherwise>
</xsl:choose>
</xsl:if>

<xsl:if test="physdesc[string-length(text()|*)!=0]">
<xsl:choose>
<xsl:when test="@label">
<tr><td> </td><td valign="top">
<b><xsl:value-of select="@label"/>
</b></td><td>
<xsl:apply-templates select="physdesc"/>
</td></tr>
</xsl:when>

<xsl:otherwise>
<tr><td> </td><td valign="top">
<b><xsl:text>Quantity: </xsl:text></b></td><td>
<xsl:apply-templates select="physdesc"/>
</td></tr>
</xsl:otherwise>
</xsl:choose>
</xsl:if>

<xsl:if test="unitid[string-length(text()|*)!=0]">
<xsl:choose>
<xsl:when test="@label">
<tr><td> </td><td valign="top">
<b><xsl:value-of select="@label"/>
</b></td><td>
<xsl:apply-templates select="unitid"/>
</td></tr>
</xsl:when>

<xsl:otherwise>
<tr><td> </td><td valign="top">
<b><xsl:text>Collection Number: </xsl:text></b></td><td>
<xsl:apply-templates select="unitid"/>

</td></tr>
</xsl:otherwise>
</xsl:choose>
</xsl:if>

<xsl:if test="physloc[string-length(text()|*)!=0]">
<xsl:choose>
<xsl:when test="@label">
<tr><td> </td><td valign="top">
<b><xsl:value-of select="@label"/>
</b></td><td>
<xsl:apply-templates select="physloc"/>
</td></tr>
</xsl:when>

<xsl:otherwise>
<tr><td> </td><td valign="top">
<b><xsl:text>Location: </xsl:text></b></td><td>
<xsl:apply-templates select="physloc"/>
</td></tr>
</xsl:otherwise>
</xsl:choose>
</xsl:if>

<xsl:if test="note[string-length(text()|*)!=0]">
<xsl:for-each select="note">
<xsl:choose>
<xsl:when test="@label">
<tr><td> </td><td valign="top">
<b><xsl:value-of select="@label"/>
</b></td></tr>
<xsl:for-each select="p">
<tr><td> </td><td valign="top">
<xsl:apply-templates/>
</td></tr>
</xsl:for-each>
</xsl:when>

<xsl:otherwise>
<tr><td> </td><td valign="top">
<b>Location:</b></td><td>
<xsl:apply-templates select="note"/>
</td></tr>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:if>


<xsl:if test="repository[string-length(text()|*)!=0]">
<xsl:choose>
<xsl:when test="@label">
<tr><td> </td><td valign="top">
<b><xsl:value-of select="@label"/>
</b></td><td>
<xsl:apply-templates select="repository"/>
</td></tr>
</xsl:when>

<xsl:otherwise>
<tr><td> </td><td valign="top">
<b><xsl:text>Repository: </xsl:text></b></td><td>
<xsl:apply-templates select="repository"/>
</td></tr>
</xsl:otherwise>
</xsl:choose>
</xsl:if>             
</table>


<br/><hr/>



</xsl:for-each>
</xsl:template>



<!--This template rule formats the top-level bioghist element.-->
<xsl:template name="archdesc-bioghist">
<xsl:variable name="file">
<xsl:value-of select="ead/eadheader/eadid"/>
</xsl:variable>

<xsl:if test="ead/archdesc/bioghist[string-length(text()|*)!=0]">
<xsl:for-each select="ead/archdesc/bioghist">
<xsl:apply-templates/>
<p class="rtoc">
<a href="#a0">Return to the Table of Contents</a>
<hr/>

</p>





</xsl:for-each>
</xsl:if>
</xsl:template>

<xsl:template match="ead/archdesc/bioghist/head">
<h3><a name="a2">
<xsl:apply-templates/>
</a></h3>
</xsl:template>

<xsl:template match="ead/archdesc/bioghist/p">
<p style="margin-left: 30pt">
<xsl:apply-templates/>
</p>
</xsl:template>

<xsl:template match="ead/archdesc/bioghist/chronlist">
<xsl:apply-templates/>
</xsl:template>


<xsl:template match="ead/archdesc/bioghist/list">
<xsl:for-each select="head">
<p style="margin-left: 30pt">
<xsl:apply-templates select="."/>
</p>
</xsl:for-each>
<xsl:for-each select="item">
<p style="margin-left: 60pt">
<xsl:apply-templates select="."/>
</p>
</xsl:for-each>
</xsl:template>


<xsl:template match="ead/archdesc/bioghist/bioghist">
<h3>
<xsl:apply-templates select="head"/>
</h3>
<xsl:for-each select="p">
<p style="margin-left: 30pt">
<xsl:apply-templates select="."/>
</p>
</xsl:for-each>
</xsl:template>

<!--This template rule formats a chronlist element.-->
<xsl:template match="*/chronlist">
<table width="100%">
<tr><td width="5%"> </td><td width="30%"> </td>
<td width="65%"> </td></tr>

<xsl:for-each select="listhead">
<tr><td><b>
<xsl:apply-templates select="head01"/>
</b></td>
<td><b>
<xsl:apply-templates select="head02"/>
</b></td></tr>
</xsl:for-each>

<xsl:for-each select="chronitem">
<tr><td></td><td valign="top">
<xsl:apply-templates select="date"/>
</td>
<td valign="top">
<xsl:apply-templates select="event"/>
</td></tr>
</xsl:for-each>
</table>
</xsl:template>



<!--This template rule formats the scopecontent element.-->
<xsl:template name="archdesc-scopecontent">
<xsl:if test="ead/archdesc/scopecontent[string-length(text()|*)!=0]">
<xsl:for-each select="ead/archdesc/scopecontent"> 
<xsl:apply-templates/>
</xsl:for-each>

<xsl:call-template name="scopecontent-arrangementstatement"/>
<p class="rtoc">
<a href="#a0">Return to the Table of Contents</a>
<hr/>

</p>


</xsl:if>
</xsl:template>

<xsl:template match="ead/archdesc/scopecontent/head">
<h3><a name="a3">
<xsl:apply-templates/>
</a></h3>
</xsl:template>


<xsl:template match="ead/archdesc/scopecontent/p">
<p style="margin-left: 30pt">
<xsl:apply-templates/>
</p>
</xsl:template>

<!-- This formats a list embedded in a scope content statement.-->
<xsl:template match="ead/archdesc/scopecontent/list">
<xsl:for-each select="head">
<p style="margin-left: 30pt">
<xsl:apply-templates select="."/>
</p>
</xsl:for-each>
<xsl:for-each select="item">
<p style="margin-left: 60pt">
<xsl:apply-templates select="."/>
</p>
</xsl:for-each>
</xsl:template>



<!-- shows the arrangement statement -->
<xsl:template name="scopecontent-arrangementstatement">

<p style="margin-left: 30pt">
<xsl:apply-templates select="p"/>
</p>
</xsl:template>


<!--This template rule formats the top-level arrangement element.-->
<xsl:template name="archdesc-arrangement">
<xsl:if test="ead/archdesc/arrangement[string-length(text()|*)!=0]">
<xsl:for-each select="ead/archdesc/arrangement">
<h3><a name="a8">
<b><xsl:apply-templates select="head"/>
</b></a></h3>
<xsl:for-each select="p">
<p style="margin-left : 30pt">
<xsl:apply-templates select="."/>
</p>
</xsl:for-each>
</xsl:for-each>
<p class="rtoc">
<a href="#a0">Return to the Table of Contents</a>
<hr/></p>


</xsl:if>
</xsl:template>



<!--This template rule formats the top-level relatedmaterial element.-->
<xsl:template name="archdesc-relatedmaterial">
<xsl:if test="ead/archdesc/relatedmaterial[string-length(text()|*)!=0] | ead/archdesc/separatedmaterial[string-length(text()|*)!=0]">
<h3><a name="a6">
<b><xsl:text>Related Material</xsl:text>
</b></a></h3>
<xsl:for-each select="ead/archdesc/relatedmaterial | ead/archdesc/separatedmaterial">
<xsl:apply-templates select="*[not(self::head)]"/> 
</xsl:for-each>
<p class="rtoc">
<a href="#a0">Return to the Table of Contents</a>
<hr/></p>



</xsl:if>
</xsl:template>


<xsl:template match="ead/archdesc/relatedmaterial/p  | ead/archdesc/separatedmaterial/p">
<p style="margin-left : 30pt">
<xsl:apply-templates/>
</p>
</xsl:template>


<!--This template rule formats the top-level otherfindaid element.-->
<xsl:template name="archdesc-otherfindaid">
<xsl:if test="ead/archdesc/otherfindaid[string-length(text()|*)!=0]">
<xsl:for-each select="ead/archdesc/otherfindaid">
<h3><a name="a8">
<b><xsl:apply-templates select="head"/>
</b></a></h3>
<xsl:for-each select="p">
<p style="margin-left : 30pt">
<xsl:apply-templates select="."/>
</p>
</xsl:for-each>
</xsl:for-each>
<p class="rtoc">
<a href="#a0">Return to the Table of Contents</a>
<hr/></p>


</xsl:if>
</xsl:template>

<!--This template rule formats the top-level index element.-->
<xsl:template name="archdesc-index">
<xsl:if test="ead/archdesc/index[string-length(text()|*)!=0]">
<xsl:for-each select="ead/archdesc/index">
<h3><a name="a9">
<b><xsl:apply-templates select="head"/>
</b></a></h3>
<xsl:for-each select="p">
<p style="margin-left : 30pt">
<xsl:apply-templates select="."/>
</p>
</xsl:for-each>
</xsl:for-each>
<p class="rtoc">
<a href="#a0">Return to the Table of Contents</a>
<hr/>

</p>
</xsl:if>
</xsl:template>

<!--This template rule formats the top-level bibliography element.-->
<xsl:template name="archdesc-bibliography">
<xsl:if test="ead/archdesc/bibliography[string-length(text()|*)!=0]">
<xsl:for-each select="ead/archdesc/bibliography">
<h3><a name="a10">
<b><xsl:apply-templates select="head"/>
</b></a></h3>
<xsl:for-each select="p">
<xsl:for-each select="bibref">
<p style="margin-left : 30pt">
<xsl:apply-templates select="."/>
</p>
</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
<p class="rtoc">
<a href="#a0">Return to the Table of Contents</a>
<hr/>

</p>
</xsl:if>
</xsl:template>


<!--This template rule formats the top-level odd element.-->
<xsl:template name="archdesc-odd">
<xsl:if test="ead/archdesc/odd[string-length(text()|*)!=0]">
<xsl:for-each select="ead/archdesc/odd">
<h3><a name="a11">
<b><xsl:text>Additional Information</xsl:text>
</b></a></h3>
<xsl:for-each select="list">
<h4 style="margin-left : 30pt">
<xsl:apply-templates select="head"/>
</h4>
<xsl:apply-templates select="."/>
<xsl:for-each select="p">
<p style="margin-left : 30pt">
<xsl:apply-templates select="."/>
</p>
</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
<p class="rtoc">
<a href="#a0">Return to the Table of Contents</a>
<hr/>

</p>
</xsl:if>
</xsl:template>


<xsl:template name="archdesc-control">
<xsl:if test="ead/archdesc/controlaccess[string-length(text()|*)!=0]">
<xsl:for-each select="ead/archdesc/controlaccess">
<table width="100%">
<tr><td width="5%"> </td><td width="5%"> </td>
<td width="90%"> </td></tr>

<tr><td colspan="3"><h3><a name="a12">
<xsl:apply-templates select="head"/>
</a></h3> </td></tr>

<tr><td> </td><td colspan="2">
<xsl:apply-templates select="p"/>
</td></tr>
    
<tr><td colspan="3"></td></tr>


<xsl:for-each select="subject |corpname | persname | genreform | title | geogname | occupation">
<xsl:sort select="."/>
<tr><td></td><td></td><td>
<xsl:apply-templates select="."/>
</td></tr>
</xsl:for-each>

</table>
</xsl:for-each>
<p class="rtoc">
<a href="#a0">Return to the Table of Contents</a>
<hr/>

</p>
</xsl:if>
</xsl:template>

<!--This template rule formats a top-level accessrestrict element.-->
<xsl:template name="archdesc-restrict">
<xsl:if test="ead/archdesc/descgrp/accessrestrict[string-length(text()|*)!=0] | ead/archdesc/descgrp/userestrict[string-length(text()|*)!=0]">
<h3>
<a name="a14">
<b><xsl:text>Restrictions</xsl:text>
</b></a></h3>
<xsl:for-each select="ead/archdesc/descgrp/accessrestrict">
<h4 style="margin-left : 15pt"><xsl:value-of select="head"/></h4>
<xsl:for-each select="p">
<p style="margin-left : 30pt">
<xsl:apply-templates select="."/>
</p>
</xsl:for-each>
</xsl:for-each>

<xsl:for-each select="ead/archdesc/descgrp/userestrict">
<h4 style="margin-left : 15pt"><xsl:value-of select="head"/></h4>
<xsl:for-each select="p">
<p style="margin-left : 30pt">
<xsl:apply-templates select="."/>
</p>
</xsl:for-each>
</xsl:for-each>
<p class="rtoc">
<a href="#a0">Return to the Table of Contents</a>
<hr/>

</p>
</xsl:if>
</xsl:template>


<xsl:template name="archdesc-admininfo">
<xsl:if test="ead/archdesc/descgrp/prefercite[string-length(text()|*)!=0] | ead/archdesc/descgrp/custodhist[string-length(text()|*)!=0] | 
ead/archdesc/descgrp/altformavail[string-length(text()|*)!=0] |
ead/archdesc/descgrp/acqinfo[string-length(text()|*)!=0] | 
ead/archdesc/descgrp/processinfo[string-length(text()|*)!=0] | ead/archdesc/descgrp/appraisal[string-length(text()|*)!=0] | 
ead/archdesc/descgrp/accruals[string-length(text()|*)!=0]">
<h3><a name="a13">
<xsl:text>Administrative Information</xsl:text>
</a></h3>
<xsl:call-template name="archdesc-custodhist"/>
<xsl:call-template name="archdesc-altform"/>
<xsl:call-template name="archdesc-prefercite"/>
<xsl:call-template name="archdesc-acqinfo"/>
<xsl:call-template name="archdesc-processinfo"/>
<xsl:call-template name="archdesc-appraisal"/>
<xsl:call-template name="archdesc-accruals"/>
<p class="rtoc">
<a href="#a0">Return to the Table of Contents</a>
<hr/>

</p>
</xsl:if>
</xsl:template>

<!--This template rule formats a top-level custodhist element.-->
<xsl:template name="archdesc-custodhist">
<xsl:if test="ead/archdesc/descgrp/custodhist[string-length(text()|*)!=0]">
<xsl:for-each select="ead/archdesc/descgrp/custodhist">
<h4 style="margin-left : 15pt">
<a name="a16">
<xsl:apply-templates select="head"/>
</a></h4>
<xsl:for-each select="p">
<p style="margin-left : 30pt">
<xsl:apply-templates select="."/>
</p>
</xsl:for-each>
</xsl:for-each>
</xsl:if>
</xsl:template>


<!--This template rule formats a top-level altformavailable element.-->
<xsl:template name="archdesc-altform">
<xsl:if test="ead/archdesc/descgrp/altformavailable[string-length(text()|*)!=0]">
<xsl:for-each select="ead/archdesc/descgrp/altformavailable">
<h4 style="margin-left : 15pt">
<a name="a17">
<b><xsl:apply-templates select="head"/>
</b></a></h4>
<xsl:for-each select="p">
<p style="margin-left : 30pt">
<xsl:apply-templates select="."/>
</p>
</xsl:for-each>
</xsl:for-each>
</xsl:if>
</xsl:template>



<!--This template rule formats a top-level prefercite element.-->
<xsl:template name="archdesc-prefercite">
<xsl:if test="ead/archdesc/descgrp/prefercite[string-length(text()|*)!=0]">
<xsl:for-each select="ead/archdesc/descgrp/prefercite">
<h4 style="margin-left : 15pt">
<a name="a18">
<xsl:apply-templates select="head"/>
</a></h4>
<xsl:for-each select="p">
<p style="margin-left : 30pt">
<xsl:apply-templates select="."/>
</p>
</xsl:for-each>
</xsl:for-each>
</xsl:if>
</xsl:template>


<!--This template rule formats a top-level acqinfo element.-->
<xsl:template name="archdesc-acqinfo">
<xsl:if test="ead/archdesc/descgrp/acqinfo[string-length(text()|*)!=0]">
<xsl:for-each select="ead/archdesc/descgrp/acqinfo">
<h4 style="margin-left : 15pt"> 
<a name="a19">
<xsl:apply-templates select="head"/>
</a></h4>
<xsl:for-each select="p">
<p style="margin-left : 30pt">
<xsl:apply-templates select="."/>
</p>
</xsl:for-each>
</xsl:for-each>
</xsl:if>
</xsl:template>

<!--This template rule formats a top-level procinfo element.-->
<xsl:template name="archdesc-processinfo">
<xsl:if test="ead/archdesc/descgrp/processinfo[string-length(text()|*)!=0]">
<xsl:for-each select="ead/archdesc/descgrp/processinfo">
<h4 style="margin-left : 15pt">
<a name="a20">
<b><xsl:apply-templates select="head"/>
</b></a></h4>
<xsl:for-each select="p">
<p style="margin-left : 30pt">
<xsl:apply-templates select="."/>
</p>
</xsl:for-each>
</xsl:for-each>
</xsl:if>
</xsl:template>

<!--This template rule formats a top-level appraisal element.-->
<xsl:template name="archdesc-appraisal">
<xsl:if test="ead/archdesc/descgrp/appraisal[string-length(text()|*)!=0]">
<xsl:for-each select="ead/archdesc/descgrp/appraisal">
<h4 style="margin-left : 15pt"> 
<a name="a21">
<b><xsl:apply-templates select="head"/>
</b></a></h4>
<xsl:for-each select="p">
<p style="margin-left : 30pt">
<xsl:apply-templates select="."/>
</p>
</xsl:for-each>
</xsl:for-each>
</xsl:if>
</xsl:template>

<!--This template rule formats a top-level accruals element.-->
<xsl:template name="archdesc-accruals">
<xsl:if test="ead/archdesc/descgrp/accruals[string-length(text()|*)!=0]">
<xsl:for-each select="ead/archdesc/descgrp/accruals">
<h4 style="margin-left : 15pt">
<a name="a22">
<b><xsl:apply-templates select="head"/>
</b></a></h4>
<xsl:for-each select="p">
<p style="margin-left : 25pt">
<xsl:apply-templates select="."/>
</p>
</xsl:for-each>
</xsl:for-each>
</xsl:if>
</xsl:template>







<!-- CONTAINER LIST -->







<xsl:template name="dsc">



<xsl:for-each select="ead/archdesc/dsc">



<h3><a name="a23">



<xsl:apply-templates select="head"/>



</a></h3>







<p style="margin-left: 25 pt"><i>



<xsl:apply-templates select="p"/>



</i></p>







<xsl:call-template name="components-boxplusfolder"/>











</xsl:for-each>



</xsl:template>











<xsl:template name="components-boxplusfolder">



<xsl:choose>

<xsl:when test="c01[@level='series']">



<!-- displays container list with series -->



<!-- Proceses each c01 series.-->





<xsl:for-each select="c01">



<a><xsl:attribute name="name">series<xsl:number/>

</xsl:attribute>

</a>

<table width="650">

<tr>

<td width="20"> </td><td width="5"> </td>

<td width="20"> </td><td width="5"> </td>



<td width="20"> </td><td width="5"> </td>

<td width="20"></td><td width="5"> </td>

<td width="20"> </td><td width="5"> </td>



<td width="20"> </td><td width="5"> </td>

<td width="20"> </td><td width="5"> </td>

<td width="20"> </td><td width="5"> </td>

<td width="400"></td>





</tr>

<xsl:for-each select="did">







<!-- Creates a variable called box-number whose value is equal to the value of the container element for the current component.-->



<xsl:variable name="box-number" select="container[@type='box']"/>







<xsl:call-template name="showbox-c01-series-boxplusfolder"/>



</xsl:for-each>







<xsl:for-each select="scopecontent | bioghist | note | odd |admininfo/accessrestrict | admininfo/userestrict">



<xsl:for-each select="p">



<tr><td></td><td colspan="16" valign="top">



<i><xsl:apply-templates select="."/></i>



</td></tr>

<tr><td colspan="17"></td></tr>



</xsl:for-each>



<xsl:for-each select="*[not(self::p)]">



<xsl:apply-templates/>



</xsl:for-each>



</xsl:for-each>













<!-- Proceses each c02.-->



<xsl:for-each select="c02">



<xsl:for-each select="did">







<!-- Creates a variable called box-number whose value is equal to the value of the container element for the current component.-->



<xsl:variable name="box-number" select="container[@type='box']"/>







<xsl:call-template name="showbox-c02-boxplusfolder"/>



</xsl:for-each>







<xsl:for-each select="scopecontent | bioghist | note | odd |admininfo/accessrestrict | admininfo/userestrict">



<xsl:for-each select="p">



<tr><td></td><td></td><td></td><td colspan="14" valign="top">



<xsl:apply-templates select="."/>



</td></tr>



<tr><td colspan="17"></td></tr>

</xsl:for-each>



<xsl:for-each select="*[not(self::p)]">



<xsl:apply-templates/>



</xsl:for-each>



</xsl:for-each>







<!-- Processes each c03.-->



<xsl:for-each select="c03">



<xsl:for-each select="did">







<!-- Creates a variable called box-number whose value is equal to the value of the container element for the current component.-->



<xsl:variable name="box-number" select="container[@type='box']"/>











<xsl:call-template name="showbox-c03-boxplusfolder"/>



</xsl:for-each>







<!-- Process any remaining c03 elements of the type specified.-->



<xsl:for-each select="scopecontent | bioghist | note | odd |admininfo/accessrestrict | admininfo/userestrict">



<xsl:for-each select="p">



<tr><td></td><td></td><td></td><td></td><td></td><td colspan="12" valign="top">



<xsl:apply-templates select="."/>



</td></tr>



<tr><td colspan="17"></td></tr>

</xsl:for-each>



<xsl:for-each select="*[not(self::p)]">



<xsl:apply-templates/>



</xsl:for-each>



</xsl:for-each>







<!-- Processes each c04.-->



<xsl:for-each select="c04">



<xsl:for-each select="did">







<!-- Creates a variable called box-number whose value is equal to the value of the container element for the current component.-->



<xsl:variable name="box-number" select="container[@type='box']"/>











<xsl:call-template name="showbox-c04-boxplusfolder"/>







</xsl:for-each>







<!-- Process any remaining c04 elements of the type specified.-->



<xsl:for-each select="scopecontent | bioghist | note | odd |admininfo/accessrestrict | admininfo/userestrict">



<xsl:for-each select="p">



<tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td>

<td colspan="10" valign="top">



<xsl:apply-templates select="."/>



</td></tr>



<tr><td colspan="17"></td></tr>

</xsl:for-each>



<xsl:for-each select="*[not(self::p)]">



<xsl:apply-templates/>



</xsl:for-each>



</xsl:for-each>







<!-- Processes each c05-->



<xsl:for-each select="c05">



<xsl:for-each select="did">







<!-- Creates a variable called box-number whose value is equal to the value of the container element for the current component.-->







<xsl:variable name="box-number" select="container[@type='box']"/>











<xsl:call-template name="showbox-c05-boxplusfolder"/>







</xsl:for-each>







<!-- Process any remaining c05 elements of the type specified.-->



<xsl:for-each select="scopecontent | bioghist | note | odd |admininfo/accessrestrict | admininfo/userestrict">



<xsl:for-each select="p">



<tr><td></td><td></td><td></td><td></td><td></td><td></td>

<td></td><td></td><td></td><td colspan="8" valign="top">



<xsl:apply-templates select="."/>



</td></tr>



<tr><td colspan="17"></td></tr>

</xsl:for-each>



<xsl:for-each select="*[not(self::p)]">



<xsl:apply-templates/>



</xsl:for-each>



</xsl:for-each>







<!-- Processes each c06-->



<xsl:for-each select="c06">



<xsl:for-each select="did">







<!-- Creates a variable called box-number whose value is equal to the value of the container element for the current component.-->



<xsl:variable name="box-number" select="container[@type='box']"/>











<xsl:call-template name="showbox-c06-boxplusfolder"/>







</xsl:for-each>







<!-- Process any remaining c06 elements of the type specified.-->



<xsl:for-each select="scopecontent | bioghist | note | odd |admininfo/accessrestrict | admininfo/userestrict">



<xsl:for-each select="p">



<tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>

<td></td><td></td>

<td colspan="6" valign="top">



<xsl:apply-templates select="."/>



</td></tr>



<tr><td colspan="17"></td></tr>

</xsl:for-each>



<xsl:for-each select="*[not(self::p)]">



<xsl:apply-templates/>



</xsl:for-each>



</xsl:for-each>







<!-- Processes each c07.-->



<xsl:for-each select="c07">



<xsl:for-each select="did">







<!-- Creates a variable called box-number whose value is equal to the value of the container element for the current component.-->



<xsl:variable name="box-number" select="container[@type='box']"/>











<xsl:call-template name="showbox-c07-boxplusfolder"/>







</xsl:for-each>



</xsl:for-each>



<!-- Process any remaining c07 elements of the type specified.-->



<xsl:for-each select="scopecontent | bioghist | note | odd |admininfo/accessrestrict | admininfo/userestrict">



<xsl:for-each select="p">



<tr><td></td><td></td><td></td><td></td><td></td><td></td>

<td></td><td></td><td></td><td></td><td></td>

<td></td><td></td><td colspan="4" valign="top">



<xsl:apply-templates select="."/>



</td></tr>



<tr><td colspan="17"></td></tr>

</xsl:for-each>



<xsl:for-each select="*[not(self::p)]">



<xsl:apply-templates/>



</xsl:for-each>



</xsl:for-each>







<!-- Processes each c08.-->



<xsl:for-each select="c08">



<xsl:for-each select="did">







<!-- Creates a variable called box-number whose value is equal to the value of the container element for the current component.-->



<xsl:variable name="box-number" select="container[@type='box']"/>















<xsl:call-template name="showbox-c08-boxplusfolder"/>







</xsl:for-each>







<!-- Process any remaining c08 elements of the type specified.-->



<xsl:for-each select="scopecontent | bioghist | note | odd |admininfo/accessrestrict | admininfo/userestrict">



<xsl:for-each select="p">



<tr><td></td><td></td><td></td><td></td><td></td>

<td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>

<td></td><td></td><td colspan="2" valign="top">



<xsl:apply-templates select="."/>



</td></tr>



<tr><td colspan="17"></td></tr>

</xsl:for-each>



<xsl:for-each select="*[not(self::p)]">



<xsl:apply-templates/>



</xsl:for-each>



</xsl:for-each>







</xsl:for-each>



</xsl:for-each>



</xsl:for-each>



</xsl:for-each>



</xsl:for-each>



</xsl:for-each>



<p>







</p>







<br></br>



<br></br>







</table>



</xsl:for-each>

</xsl:when>

<xsl:otherwise>





<!-- displays a container list without series -->



<xsl:for-each select="c01">



<table width="650">



<tr>

<td width="20"> </td><td width="5"> </td>

<td width="20"> </td><td width="5"> </td>



<td width="20"> </td><td width="5"> </td>

<td width="20"></td><td width="5"> </td>

<td width="20"> </td><td width="5"> </td>



<td width="20"> </td><td width="5"> </td>

<td width="20"> </td><td width="5"> </td>

<td width="20"> </td><td width="5"> </td>

<td width="400"></td>



</tr>

<a><xsl:attribute name="name">series<xsl:number/>

</xsl:attribute>

</a>

<xsl:for-each select="did">

<!-- Creates a variable called box-number whose value is equal to the value of the container element for the current component.-->

<xsl:variable name="box-number" select="container[@type='box']"/>



<xsl:call-template name="showbox-c01-boxplusfolder"/>

</xsl:for-each>



<xsl:for-each select="scopecontent | bioghist | note | odd |admininfo/accessrestrict | admininfo/userestrict">

<xsl:for-each select="p">

<tr><td></td><td colspan="16" valign="top">

<i><xsl:apply-templates select="."/></i>

</td></tr>

</xsl:for-each>

<xsl:for-each select="*[not(self::p)]">

<xsl:apply-templates/>

</xsl:for-each>

</xsl:for-each>







<!-- Proceses each c02.-->



<xsl:for-each select="c02">



<xsl:for-each select="did">







<!-- Creates a variable called box-number whose value is equal to the value of the container element for the current component.-->



<xsl:variable name="box-number" select="container[@type='box']"/>







<xsl:call-template name="showbox-c02-boxplusfolder"/>



</xsl:for-each>







<xsl:for-each select="scopecontent | bioghist | note | odd |admininfo/accessrestrict | admininfo/userestrict">



<xsl:for-each select="p">



<tr><td></td><td></td><td></td><td colspan="14" valign="top">



<xsl:apply-templates select="."/>



</td></tr>



</xsl:for-each>



<xsl:for-each select="*[not(self::p)]">



<xsl:apply-templates/>



</xsl:for-each>



</xsl:for-each>







<!-- Processes each c03.-->



<xsl:for-each select="c03">



<xsl:for-each select="did">







<!-- Creates a variable called box-number whose value is equal to the value of the container element for the current component.-->



<xsl:variable name="box-number" select="container[@type='box']"/>











<xsl:call-template name="showbox-c03-boxplusfolder"/>



</xsl:for-each>







<!-- Process any remaining c03 elements of the type specified.-->



<xsl:for-each select="scopecontent | bioghist | note | odd |admininfo/accessrestrict | admininfo/userestrict">



<xsl:for-each select="p">



<tr><td></td><td></td><td></td><td></td><td></td><td colspan="12" valign="top">



<xsl:apply-templates select="."/>



</td></tr>



</xsl:for-each>



<xsl:for-each select="*[not(self::p)]">



<xsl:apply-templates/>



</xsl:for-each>



</xsl:for-each>







<!-- Processes each c04.-->



<xsl:for-each select="c04">



<xsl:for-each select="did">







<!-- Creates a variable called box-number whose value is equal to the value of the container element for the current component.-->



<xsl:variable name="box-number" select="container[@type='box']"/>











<xsl:call-template name="showbox-c04-boxplusfolder"/>







</xsl:for-each>







<!-- Process any remaining c04 elements of the type specified.-->



<xsl:for-each select="scopecontent | bioghist | note | odd |admininfo/accessrestrict | admininfo/userestrict">



<xsl:for-each select="p">



<tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td>

<td colspan="10" valign="top">



<xsl:apply-templates select="."/>



</td></tr>



</xsl:for-each>



<xsl:for-each select="*[not(self::p)]">



<xsl:apply-templates/>



</xsl:for-each>



</xsl:for-each>







<!-- Processes each c05-->



<xsl:for-each select="c05">



<xsl:for-each select="did">







<!-- Creates a variable called box-number whose value is equal to the value of the container element for the current component.-->







<xsl:variable name="box-number" select="container[@type='box']"/>











<xsl:call-template name="showbox-c05-boxplusfolder"/>







</xsl:for-each>







<!-- Process any remaining c05 elements of the type specified.-->



<xsl:for-each select="scopecontent | bioghist | note | odd |admininfo/accessrestrict | admininfo/userestrict">



<xsl:for-each select="p">



<tr><td></td><td></td><td></td><td></td><td></td><td></td>

<td></td><td></td><td></td><td colspan="8" valign="top">



<xsl:apply-templates select="."/>



</td></tr>



</xsl:for-each>



<xsl:for-each select="*[not(self::p)]">



<xsl:apply-templates/>



</xsl:for-each>



</xsl:for-each>







<!-- Processes each c06-->



<xsl:for-each select="c06">



<xsl:for-each select="did">







<!-- Creates a variable called box-number whose value is equal to the value of the container element for the current component.-->



<xsl:variable name="box-number" select="container[@type='box']"/>











<xsl:call-template name="showbox-c06-boxplusfolder"/>







</xsl:for-each>







<!-- Process any remaining c06 elements of the type specified.-->



<xsl:for-each select="scopecontent | bioghist | note | odd |admininfo/accessrestrict | admininfo/userestrict">



<xsl:for-each select="p">



<tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>

<td></td><td></td>

<td colspan="6" valign="top">



<xsl:apply-templates select="."/>



</td></tr>



</xsl:for-each>



<xsl:for-each select="*[not(self::p)]">



<xsl:apply-templates/>



</xsl:for-each>



</xsl:for-each>







<!-- Processes each c07.-->



<xsl:for-each select="c07">



<xsl:for-each select="did">







<!-- Creates a variable called box-number whose value is equal to the value of the container element for the current component.-->



<xsl:variable name="box-number" select="container[@type='box']"/>











<xsl:call-template name="showbox-c07-boxplusfolder"/>







</xsl:for-each>



</xsl:for-each>



<!-- Process any remaining c07 elements of the type specified.-->



<xsl:for-each select="scopecontent | bioghist | note | odd |admininfo/accessrestrict | admininfo/userestrict">



<xsl:for-each select="p">



<tr><td></td><td></td><td></td><td></td><td></td><td></td>

<td></td><td></td><td></td><td></td><td></td>

<td></td><td></td><td colspan="4" valign="top">



<xsl:apply-templates select="."/>



</td></tr>



</xsl:for-each>



<xsl:for-each select="*[not(self::p)]">



<xsl:apply-templates/>



</xsl:for-each>



</xsl:for-each>







<!-- Processes each c08.-->



<xsl:for-each select="c08">



<xsl:for-each select="did">







<!-- Creates a variable called box-number whose value is equal to the value of the container element for the current component.-->



<xsl:variable name="box-number" select="container[@type='box']"/>















<xsl:call-template name="showbox-c08-boxplusfolder"/>







</xsl:for-each>







<!-- Process any remaining c08 elements of the type specified.-->



<xsl:for-each select="scopecontent | bioghist | note | odd |admininfo/accessrestrict | admininfo/userestrict">



<xsl:for-each select="p">



<tr><td></td><td></td><td></td><td></td><td></td>

<td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>

<td></td><td></td><td colspan="2" valign="top">



<xsl:apply-templates select="."/>



</td></tr>



</xsl:for-each>



<xsl:for-each select="*[not(self::p)]">



<xsl:apply-templates/>



</xsl:for-each>



</xsl:for-each>







</xsl:for-each>



</xsl:for-each>



</xsl:for-each>



</xsl:for-each>



</xsl:for-each>



</xsl:for-each>



<p>







</p>







<br></br>



<br></br>







</table>







</xsl:for-each>



</xsl:otherwise>

</xsl:choose>

</xsl:template>





<!-- Box and folder number templates -->





<!-- Shows the box and folder numbers for a c01 series-->







<xsl:template name="showbox-c01-series-boxplusfolder">







<tr>



<td colspan="17" valign="top">

<h3>



<xsl:if test="unitid">



<xsl:for-each select="unitid">



<xsl:apply-templates/>



<xsl:text> </xsl:text>



</xsl:for-each>



</xsl:if>







<xsl:choose>



<xsl:when test="unittitle/unitdate">



<xsl:for-each select="unittitle">



<xsl:apply-templates select="text()|*[not(self::unitdate)]"/>



<xsl:text> </xsl:text>



<xsl:apply-templates select="./unitdate"/>



</xsl:for-each>



</xsl:when>



<xsl:otherwise>



<xsl:apply-templates select="unittitle"/>



<xsl:text> </xsl:text>



<xsl:apply-templates select="unitdate"/>



</xsl:otherwise>



</xsl:choose>







<xsl:for-each select="physdesc">



<xsl:text> </xsl:text>



<xsl:apply-templates/>



<xsl:text> </xsl:text>



</xsl:for-each>

</h3></td>



</tr>







<xsl:if test="abstract[string-length(text()|*)!=0] | note[string-length(text()|*)!=0]">



<xsl:for-each select="abstract | note">



<tr>



<td></td><td colspan="16" valign="top">



<xsl:apply-templates select="."/>



</td></tr>



</xsl:for-each>



</xsl:if>



</xsl:template>







<!-- Shows the box and folder numbers for a c01.-->



<xsl:template name="showbox-c01-boxplusfolder">







<tr>



<td colspan="17" valign="top">



<xsl:if test="unitid">



<xsl:for-each select="unitid">



<xsl:apply-templates/>



<xsl:text> </xsl:text>



</xsl:for-each>



</xsl:if>







<xsl:choose>



<xsl:when test="unittitle/unitdate">



<xsl:for-each select="unittitle">



<xsl:apply-templates select="text()|*[not(self::unitdate)]"/>



<xsl:text> </xsl:text>



<xsl:apply-templates select="./unitdate"/>



</xsl:for-each>



</xsl:when>



<xsl:otherwise>



<xsl:apply-templates select="unittitle"/>



<xsl:text> </xsl:text>



<xsl:apply-templates select="unitdate"/>



</xsl:otherwise>



</xsl:choose>







<xsl:for-each select="physdesc">



<xsl:text> </xsl:text>



<xsl:apply-templates/>



<xsl:text> </xsl:text>



</xsl:for-each>





<xsl:call-template name="container-type-test"/>



</td>



</tr>







<xsl:if test="abstract[string-length(text()|*)!=0] | note[string-length(text()|*)!=0]">



<xsl:for-each select="abstract | note">



<tr>



<td></td><td colspan="16" valign="top">



<xsl:apply-templates select="."/>



</td></tr>



</xsl:for-each>



</xsl:if>



</xsl:template>











<!-- Shows the box and folder numbers for a c02.-->



<xsl:template name="showbox-c02-boxplusfolder">



<tr>



<td></td><td></td><td colspan="15" valign="top">



<xsl:if test="unitid">



<xsl:for-each select="unitid">



<xsl:apply-templates/>



<xsl:text> </xsl:text>



</xsl:for-each>



</xsl:if>







<xsl:choose>



<xsl:when test="unittitle/unitdate">



<xsl:for-each select="unittitle">



<xsl:apply-templates select="text()|*[not(self::unitdate)]"/>



<xsl:text> </xsl:text>



<xsl:apply-templates select="./unitdate"/>



</xsl:for-each>



</xsl:when>



<xsl:otherwise>



<xsl:apply-templates select="unittitle"/>



<xsl:text> </xsl:text>



<xsl:apply-templates select="unitdate"/>



</xsl:otherwise>



</xsl:choose>







<xsl:for-each select="physdesc">



<xsl:text> </xsl:text>



<xsl:apply-templates/>



<xsl:text> </xsl:text>



</xsl:for-each>





<xsl:call-template name="container-type-test"/>



</td>



</tr>







<xsl:if test="abstract[string-length(text()|*)!=0] | note[string-length(text()|*)!=0]">



<xsl:for-each select="abstract | note">



<tr>



<td></td><td></td><td></td><td colspan="14" valign="top">



<xsl:apply-templates select="."/>



</td></tr>



</xsl:for-each>



</xsl:if>



</xsl:template>



















<!-- Shows the box and folder number for a c03.-->



<xsl:template name="showbox-c03-boxplusfolder">









<tr>



<td> 



</td>



<td> 



</td>



<td></td><td></td><td colspan="13" valign="top">







<xsl:if test="unitid">



<xsl:for-each select="unitid">



<xsl:apply-templates/>



<xsl:text> </xsl:text>



</xsl:for-each>



</xsl:if>







<xsl:choose>



<xsl:when test="unittitle/unitdate">



<xsl:for-each select="unittitle">



<xsl:apply-templates select="text()|*[not(self::unitdate)]"/>



<xsl:text> </xsl:text>



<xsl:apply-templates select="./unitdate"/>



</xsl:for-each>



</xsl:when>



<xsl:otherwise>



<xsl:apply-templates select="unittitle"/>



<xsl:text> </xsl:text>



<xsl:apply-templates select="unitdate"/>



</xsl:otherwise>



</xsl:choose>







<xsl:for-each select="physdesc">



<xsl:text> </xsl:text>



<xsl:apply-templates/>



<xsl:text> </xsl:text>



</xsl:for-each>


<xsl:call-template name="container-type-test"/>



</td></tr>







<xsl:if test="abstract[string-length(text()|*)!=0] | note[string-length(text()|*)!=0]">



<xsl:for-each select="abstract | note">



<tr>



<td></td><td></td><td></td><td></td><td></td><td colspan="12" valign="top">



<xsl:apply-templates select="."/>



</td></tr>



</xsl:for-each>



</xsl:if>



</xsl:template>



















<!-- Shows the box and folder number for a c04.-->



<xsl:template name="showbox-c04-boxplusfolder">







<tr>



<td> 



</td>



<td> 



</td>



<td></td><td></td><td></td><td></td><td colspan="11" valign="top">







<xsl:if test="unitid">



<xsl:for-each select="unitid">



<xsl:apply-templates/>



<xsl:text> </xsl:text>



</xsl:for-each>



</xsl:if>







<xsl:choose>



<xsl:when test="unittitle/unitdate">



<xsl:for-each select="unittitle">



<xsl:apply-templates select="text()|*[not(self::unitdate)]"/>



<xsl:text> </xsl:text>



<xsl:apply-templates select="./unitdate"/>



</xsl:for-each>



</xsl:when>



<xsl:otherwise>



<xsl:apply-templates select="unittitle"/>



<xsl:text> </xsl:text>



<xsl:apply-templates select="unitdate"/>



</xsl:otherwise>



</xsl:choose>







<xsl:for-each select="physdesc">



<xsl:text> </xsl:text>



<xsl:apply-templates/>



</xsl:for-each>



<xsl:call-template name="container-type-test"/>



</td>



</tr>







<xsl:if test="abstract[string-length(text()|*)!=0] | note[string-length(text()|*)!=0]">



<xsl:for-each select="abstract | note">



<tr>



<td></td><td></td><td></td><td></td><td></td><td></td><td></td>

<td colspan="10" valign="top">



<xsl:apply-templates select="."/>



</td></tr>



</xsl:for-each>



</xsl:if>



</xsl:template>















<!-- Shows the box and folder number for a c05.-->



<xsl:template name="showbox-c05-boxplusfolder">







<tr>



<td> 



</td>



<td> 



</td>



<td></td><td></td><td></td><td></td><td></td><td></td>

<td colspan="9" valign="top">







<xsl:if test="unitid">



<xsl:for-each select="unitid">



<xsl:apply-templates/>



<xsl:text> </xsl:text>



</xsl:for-each>



</xsl:if>







<xsl:choose>



<xsl:when test="unittitle/unitdate">



<xsl:for-each select="unittitle">



<xsl:apply-templates select="text()|*[not(self::unitdate)]"/>



<xsl:text> </xsl:text>



<xsl:apply-templates select="./unitdate"/>



</xsl:for-each>



</xsl:when>



<xsl:otherwise>



<xsl:apply-templates select="unittitle"/>



<xsl:text> </xsl:text>



<xsl:apply-templates select="unitdate"/>



</xsl:otherwise>



</xsl:choose>







<xsl:for-each select="physdesc">



<xsl:text> </xsl:text>



<xsl:apply-templates/>



<xsl:text> </xsl:text>



</xsl:for-each>





<xsl:call-template name="container-type-test"/>



</td>



</tr>







<xsl:if test="abstract[string-length(text()|*)!=0] | note[string-length(text()|*)!=0]">



<xsl:for-each select="abstract | note">



<tr>



<td></td><td></td><td></td><td></td><td></td><td></td><td></td>

<td></td><td></td><td colspan="8" valign="top">



<xsl:apply-templates select="."/>



</td></tr>



</xsl:for-each>



</xsl:if>



</xsl:template>















<!-- Shows the box and folder number for a c06.-->



<xsl:template name="showbox-c06-boxplusfolder">







<tr>



<td> 



</td>



<td> 



</td>



<td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>

<td colspan="7" valign="top">



<xsl:if test="unitid">



<xsl:for-each select="unitid">



<xsl:apply-templates/>



<xsl:text> </xsl:text>



</xsl:for-each>



</xsl:if>







<xsl:choose>



<xsl:when test="unittitle/unitdate">



<xsl:for-each select="unittitle">



<xsl:apply-templates select="text()|*[not(self::unitdate)]"/>



<xsl:text> </xsl:text>



<xsl:apply-templates select="./unitdate"/>



</xsl:for-each>



</xsl:when>



<xsl:otherwise>



<xsl:apply-templates select="unittitle"/>



<xsl:text> </xsl:text>



<xsl:apply-templates select="unitdate"/>



</xsl:otherwise>



</xsl:choose>







<xsl:for-each select="physdesc">



<xsl:text> </xsl:text>



<xsl:apply-templates/>



<xsl:text> </xsl:text>



</xsl:for-each>



<xsl:call-template name="container-type-test"/>



</td>



</tr>







<xsl:if test="abstract[string-length(text()|*)!=0] | note[string-length(text()|*)!=0]">



<xsl:for-each select="abstract | note">



<tr>



<td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>

<td></td><td></td><td></td><td colspan="6" valign="top">



<xsl:apply-templates select="."/>



</td></tr>



</xsl:for-each>



</xsl:if>



</xsl:template>



















<!-- Shows the box and folder number for a c07.-->



<xsl:template name="showbox-c07-boxplusfolder">







<tr>



<td> 



</td>



<td> 



</td>



<td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>



<td colspan="5" valign="top">



<xsl:if test="unitid">



<xsl:for-each select="unitid">



<xsl:apply-templates/>



<xsl:text> </xsl:text>



</xsl:for-each>



</xsl:if>







<xsl:choose>



<xsl:when test="unittitle/unitdate">



<xsl:for-each select="unittitle">



<xsl:apply-templates select="text()|*[not(self::unitdate)]"/>



<xsl:text> </xsl:text>



<xsl:apply-templates select="./unitdate"/>



</xsl:for-each>



</xsl:when>



<xsl:otherwise>



<xsl:apply-templates select="unittitle"/>



<xsl:text> </xsl:text>



<xsl:apply-templates select="unitdate"/>



</xsl:otherwise>



</xsl:choose>







<xsl:for-each select="physdesc">



<xsl:text> </xsl:text>



<xsl:apply-templates/>



<xsl:text> </xsl:text>



</xsl:for-each>



<xsl:call-template name="container-type-test"/>





</td>



</tr>







<xsl:if test="abstract[string-length(text()|*)!=0] | note[string-length(text()|*)!=0]">



<xsl:for-each select="abstract | note">



<tr>



<td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>

<td></td><td></td><td></td><td></td><td colspan="4" valign="top">



<xsl:apply-templates select="."/>



</td></tr>



</xsl:for-each>



</xsl:if>



</xsl:template>



















<!-- Shows the box and folder number for a c08.-->



<xsl:template name="showbox-c08-boxplusfolder">







<tr>



<td> 



</td>



<td> 



</td>



<td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>

<td></td><td></td><td></td><td></td>



<td colspan="3" valign="top">



<xsl:if test="unitid">



<xsl:for-each select="unitid">



<xsl:apply-templates/>



<xsl:text> </xsl:text>



</xsl:for-each>



</xsl:if>







<xsl:choose>



<xsl:when test="unittitle/unitdate">



<xsl:for-each select="unittitle">



<xsl:apply-templates select="text()|*[not(self::unitdate)]"/>



<xsl:text> </xsl:text>



<xsl:apply-templates select="./unitdate"/>



</xsl:for-each>



</xsl:when>



<xsl:otherwise>



<xsl:apply-templates select="unittitle"/>



<xsl:text> </xsl:text>



<xsl:apply-templates select="unitdate"/>



</xsl:otherwise>



</xsl:choose>







<xsl:for-each select="physdesc">



<xsl:text> </xsl:text><xsl:apply-templates/>



<xsl:text> </xsl:text>



</xsl:for-each>



<xsl:call-template name="container-type-test"/>





</td>



</tr>







<xsl:if test="abstract[string-length(text()|*)!=0] | note[string-length(text()|*)!=0]">



<xsl:for-each select="abstract | note">



<tr>



<td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>

<td></td><td></td><td></td><td></td><td></td><td colspan="2" valign="top">



<xsl:apply-templates select="."/>



</td></tr>



</xsl:for-each>



</xsl:if>



</xsl:template>





<!--template for different types of container displays-->





<xsl:template name="container-type-test">





<!--test if there is a box and only a box-->



<xsl:if test="container[@type='box'] 

and not(container[@type='folder'] or container[@type='folders'])">

<xsl:text> (Box </xsl:text><xsl:apply-templates select="container[@type='box']"/>

<xsl:text>)</xsl:text>

</xsl:if>




<xsl:if test="container[@type='boxes']">

<xsl:text> (Boxes </xsl:text><xsl:apply-templates select="container[@type='boxes']"/>

<xsl:text>)</xsl:text>

</xsl:if>



<!--test if there is a drawer-->



<xsl:if test="container[@type='drawer']">

<xsl:text> (Drawer </xsl:text><xsl:apply-templates select="container[@type='drawer']"/>

<xsl:text>)</xsl:text>

</xsl:if>





<!--test if there is a box and folder-->

<xsl:if test="container[@type='folder'] and container[@type='box']">

<xsl:text> (Box </xsl:text><xsl:apply-templates select="container[@type='box']"/>

<xsl:text>, folder </xsl:text><xsl:apply-templates select="container[@type='folder']"/>



<xsl:text>)</xsl:text></xsl:if>





<!--test if there is a box and range of folders-->

<xsl:if test="container[@type='folders'] and container[@type='box']">

<xsl:text> (Box </xsl:text><xsl:apply-templates select="container[@type='box']"/>

<xsl:text>, folders </xsl:text><xsl:apply-templates select="container[@type='folders']"/>

<xsl:text>)</xsl:text></xsl:if>





<!--test if there is more than 1 box and folder set

<xsl:if test="container[@type='box'] and container[@type='box']">

number the box and folders, then set to print them based on numbers

Creates a variable called box-number whose value is equal to

 the value of the container element for the current component.

<xsl:variable name="box" select="container[@type='box']"/><xsl:number/>

</xsl:if>-->





</xsl:template>

<xsl:template name="end">
<p align="center"> 
<font size="+1">Return to 
<a href="http://special.lib.umn.edu/uarch/collection.html">University Archives Collections</a> </font>
<br/> </p>
<p align="center">
<font size="-1"> 
Copyright 2002 by the Regents of the 
<a href="http://www.tc.umn.edu/">University of Minnesota, Twin Cities</a>, and the 
<a href="http://www.lib.umn.edu">University Libraries</a> 
. 
<br/> 
Please credit the University of Minnesota Libraries if you copy or reproduce material from this page. 
</font> 
</p> 

</xsl:template>


</xsl:stylesheet>


