LISTSERV mailing list manager LISTSERV 16.0

Help for EAD Archives


EAD Archives

EAD Archives


[email protected]


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

EAD Home

EAD Home

EAD  September 2006

EAD September 2006

Subject:

Re: style sheet for long finding aids

From:

Mike Ferrando <[log in to unmask]>

Reply-To:

Encoded Archival Description List <[log in to unmask]>

Date:

Thu, 21 Sep 2006 10:04:56 -0700

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (1252 lines)

Correction:

<xsl:when test="parent::*[preceding-sibling::did]">

--- Amy McCrory <[log in to unmask]> wrote:

> This stylesheet offers a few modifications to the EAD Cookbook's 
> eadcbs7.xsl.  It addresses two problems inherent in very long 
> collection descriptions:
> 
> 1. It builds on eadcbs7.xsl's techniques for splitting the finding 
> aid into separate HTML pages--one for the collection-level 
> description, and one for each series level.
> 
> 2. I've removed all the <table> formatting, thereby reducing the
> size 
> of the HTML output.
> 
> (It doesn't address the problem Michael stated, of controlling the 
> width of columns, which various browsers interpret differently. 
> I'm 
> guessing percentages instead of pixels would be a good start,
> though 
> I've heard there can be problems with that approach too.)
> 
> Additionally, I've substituted divs for frames.  (Thanks to
> everyone 
> on this list who sent advice when I asked how to do this several 
> months ago!)  The Table of Contents <div> has the attribute 
> "position:fixed", which keeps the TOC onscreen no matter how far
> you 
> scroll down the page.  Unfortunately, this is not yet supported in 
> Internet Explorer.  It works in Opera and in the newest release of 
> Netscape, though.
> 
> Please feel free to add your own modifications, or to suggest 
> improvements to mine.
> 
> Amy
> 
> 
>
----------------------------------------------------------------------
> Amy McCrory
> Digital Imaging Specialist, Preservation Department
> 228 Thompson Library, 1858 Neil Avenue
> The Ohio State University Libraries
> Columbus, OH 43210
> (614) 292-8647
> 
> > <!--This stylesheet was adapted by Amy McCrory and Susan
Liberator
> in 2006 from the SAA EAD Cookbook stylesheet eadcbs7.xsl.-->
> 
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:saxon="http://icl.com/saxon"
> extension-element-prefixes="saxon" doctype-public="-//W3C//DTD HTML
> 4.0 Transitional//EN" version="1.1">
> <xsl:strip-space elements="*"/>
> <xsl:output encoding="ISO-8859-1" method="html"/>
> 
> 
> <!-- Creates a variable equal to the value of the number in eadid
> which serves as the base
>  for file names.-->
> <xsl:variable name="file">
> <xsl:value-of select="ead/eadheader/eadid"/>
> </xsl:variable>
> 
> <xsl:template match="/">
> 
> 
> <!--TEMPLATE 1: CREATES A PAGE FOR THE COLLECTION-LEVEL
> DESCRIPTION-->
> 
> <xsl:variable name="file">
> <xsl:value-of select="ead/eadheader/eadid"/>
> </xsl:variable>
> 
> <xsl:document method="html" href="{$file}.html">
> <html>
> 
> <head>
> <link rel="stylesheet" type="text/css" href="mendez.css" />
> <title>
> <xsl:value-of select="eadheader/filedesc/titlestmt/titleproper"/>
> <xsl:text>  </xsl:text>
> <xsl:value-of select="eadheader/filedesc/titlestmt/subtitle"/>
> </title>
> <xsl:call-template name="metadata"/>
> </head>
> 
> <body style="font-family:verdana">
> 
> <!--TABLE OF CONTENTS-->
> <div id="toplevel">
> 
> <!--CHANGED DISPLAY PROPERTIES-->
> <div id="toc" style="overflow:scroll; position:fixed; height:100%;
> border-right:1px; float:left; padding-right:5%; width:20%;">
> 
> <div style="font-size:20"><b>Table of Contents</b></div>
> <hr/>
> 
> <!-- The Table of Contents generates link to the [list of mandatory
> elements], then performs a series of tests to determine which
> additional elements will be included in the table of contents. 
> Each xsl:if statement tests to see if there is a matching element
> with content in the finding aid.-->
> 
> <div style="font-size:14"><b>General Description of the
> Collection</b></div>
> <br/>
> 
> <b>
> <div style="linespacing:20px">
> <a href="{$file}.html">
> <xsl:text>Title Page</xsl:text>
> </a>
> <br/><br/>
> 
> <b>
> <a href="{$file}.html#{generate-id(ead/archdesc/did/head)}">
> <xsl:value-of select="ead/archdesc/did/head"/>
> </a>
> <br/><br/>
> 
> <a href="{$file}.html#{generate-id(ead/archdesc/bioghist/head)}">
> <xsl:value-of select="ead/archdesc/bioghist/head"/>
> </a>
> <br/><br/>
> 
> <a
> href="{$file}.html#{generate-id(ead/archdesc/scopecontent/head)}">
> <xsl:value-of select="ead/archdesc/scopecontent/head"/>
> </a>
> <br/><br/>
> 
> <a
> href="{$file}.html#{generate-id(ead/archdesc/arrangement/head)}">
> <xsl:value-of select="ead/archdesc/arrangement/head"/>
> </a>
> <br/><br/>
> </b>
> </div>
> <hr></hr>
> 
> 
> <div style="font-size:14">Detailed Description of the Collection /
> Box and Folder List</div>
> <br/>
> <!-- Displays the unittitle and unitdates for a c01 if it is a
> series and numbers them to form a hyperlink to each.-->
> <xsl:for-each select="ead/archdesc/dsc/c01[@level='series']">
> <a>
> <xsl:attribute name="href">
> <xsl:value-of select="$file"/>series<xsl:number value="position()"
> format="1"/>.html</xsl:attribute>
> 
> <xsl:apply-templates select="did/unittitle"/>
> <xsl:text>, </xsl:text>
> <xsl:apply-templates select="did/unitdate"/>
> <br/><br/>
> </a>
> </xsl:for-each>
> 
> <hr/>
> 
> 
> <div style="font-size:14">Information for researchers</div>
> <br/>
> 
> 
> <xsl:if test="string(ead/archdesc/prefercite/head)">
> <a href="{$file}.html#{generate-id(ead/archdesc/prefercite/head)}">
> <xsl:value-of select="ead/archdesc/prefercite/head"/>
> </a>
> </xsl:if>
> <br/><br/>
> 
> <xsl:if test="string(ead/archdesc/accessrestrict/head)">
> <a
>
href="{$file}.html#{generate-id(ead/archdesc/accessrestrict/head)}">
> <xsl:value-of select="ead/archdesc/accessrestrict/head"/>
> </a>
> </xsl:if>
> <br/><br/>
> 
> <xsl:if test="string(ead/archdesc/userestrict/head)">
> <a
> href="{$file}.html#{generate-id(ead/archdesc/userestrict/head)}">
> <xsl:value-of select="ead/archdesc/userestrict/head"/>
> </a>
> </xsl:if>
> <br/><br/>
> <xsl:if test="string(ead/archdesc/separatedmaterial/head)">
> <a
>
href="{$file}.html#{generate-id(ead/archdesc/separatedmaterial/head)}">
> <xsl:value-of select="ead/archdesc/separatedmaterial/head"/>
> </a>
> </xsl:if>
> <br/><br/>
> 
> <xsl:if test="string(ead/archdesc/relatedmaterial/head)">
> <a
>
href="{$file}.html#{generate-id(ead/archdesc/relatedmaterial/head)}">
> <xsl:value-of select="ead/archdesc/relatedmaterial/head"/>
> </a>
> </xsl:if>
> <br/><br/>
> 
> <xsl:if test="string(ead/archdesc/phystech/head)">
> <a href="{$file}.html#{generate-id(ead/archdesc/phystech/head)}">
> <xsl:value-of select="ead/archdesc/phystech/head"/>
> </a>
> </xsl:if>
> </b>
> <br/><br/>
> <hr/>
> 
> <div style="font-size:14"><b>Acquisition and Processing
> Information</b></div>
> <br/>
> <b>
> 
> <xsl:if test="string(ead/archdesc/acqinfo/*)">
> <a href="{$file}.html#{generate-id(ead/archdesc/acqinfo/head)}">
> <xsl:value-of select="ead/archdesc/acqinfo/head"/>
> </a>
> </xsl:if>
> <br/><br/>
> 
> <xsl:if test="string(ead/archdesc/processinfo/*)">
> <a
> href="{$file}.html#{generate-id(ead/archdesc/processinfo/head)}">
> <xsl:value-of select="ead/archdesc/processinfo/head"/>
> </a>
> </xsl:if>
> </b>
> <br/><br/>
> <b><a href="mailto:YOUR-CONTACT@YOUR-EMAIL">Contact REPOSITORY
> NAME</a></b>
> <br/><br/>
> <hr/>
> <hr/>
> </div>
> </div>
> 
> <!--This part of template inserts a logo and title at the top of
> the display.  Insert the proper path to your image in place of
> YOUR-LOGO.gif.-->
> 
> <div style="margin-left:20%; font-size:23;">
> <img src="YOUR-LOGO.gif"></img>
> </div>
> <br/><br/>
> 
> <!--TEMPLATE 19, LINE 406 FORMATS EADHEADER.-->
> 
> <div style="margin-left:20%; font-size:28">
> <b>
> 
> <xsl:value-of
> select="ead/eadheader/filedesc/titlestmt/titleproper"/>
> <xsl:text>  </xsl:text>
> <xsl:value-of select="ead/eadheader/filedesc/titlestmt/subtitle"/>
> 
> </b>
> </div>
> <br/><br/><br/>
> 
> 
> <!--THIS APPLIES TO PARAGRAPH TAGS OF THESE ELEMENTS - To change
> the order of display, adjust the sequence of the following
> apply-template statements which invoke the various templates that
> populate the finding aid.-->
> 
> <div style="margin-left:10%; width:80%">
> <xsl:apply-templates select="ead/archdesc/did"/>
> 
> <xsl:apply-templates select="ead/archdesc/bioghist"/>
> <xsl:apply-templates select="ead/archdesc/scopecontent"/>
> <xsl:apply-templates select="ead/archdesc/arrangement"/>
> 
> <h2>Information for researchers</h2>
> <xsl:apply-templates select="ead/archdesc/prefercite"/>
> <xsl:apply-templates select="ead/archdesc/accessrestrict"/>
> <xsl:apply-templates select="ead/archdesc/userestrict"/>
> <xsl:apply-templates select="ead/archdesc/separatedmaterial"/>
> <xsl:apply-templates select="ead/archdesc/relatedmaterial"/>
> <xsl:apply-templates select="ead/archdesc/phystech"/>
> 
> 
> 
> <h2>Acquisition and Processing Information</h2>
> <xsl:apply-templates select="ead/archdesc/acqinfo"/>
> <xsl:apply-templates select="ead/archdesc/processinfo"/>
> </div>
> </body>
> </html>
> </xsl:document>
> 
> 
> 
> <!--CREATES A PAGE FOR EACH SERIES OF THE FINDING AID-->
> 
> <xsl:for-each select="ead/archdesc/dsc/c01">
> <xsl:variable name="series">
> <xsl:number value="position()" format="1"/>
> </xsl:variable>
> 	
> <xsl:document method="html" href="{$file}series{$series}.html">
> <html>
> <head><link rel="stylesheet" type="text/css" href="mendez.css" />
> <title>
> 
> <xsl:value-of
> select="ancestor::ead/eadheader/filedesc/titlestmt/titleproper"/>
> <xsl:text>  </xsl:text>
> <xsl:value-of
> select="ancestor::ead/eadheader/filedesc/titlestmt/subtitle"/>
> </title>
> <!--CALL TEMPLATE "METADATA"?-->
> </head>
> 
> <body style="font-family:verdana">	
> 
> <!--CHANGED DISPLAY PROPERTIES-->
> <div id="toc" style="overflow:scroll; position:fixed; height:100%;
> border-right:1px; float:left; width:20%; margin-right:10px">
> 
> <div style="font-size:20"><b>Table of Contents</b></div>
> <hr/>
> 
> <!-- The Table of Contents generates link to the [list of mandatory
> elements], then performs a series of tests to determine which
> additional elements will be included in the table of contents. 
> Each xsl:if statement tests to see if there is a matching element
> with content in the finding aid.-->
> 
> <div style="font-size:14"><b>General Description of the
> Collection</b></div>
> <br/>
> 
> 
> <b>
> <div style="linespacing:20px">
> <a href="{$file}.html">
> <xsl:text>Title Page</xsl:text>
> </a>
> <br/><br/>
> 
> <!--CHANGED: VALUE-OF SELECT HAS ADDITION OF ANCESTOR::-->
> <b>
> <a
> href="{$file}.html#{generate-id(ancestor::ead/archdesc/did/head)}">
> <xsl:value-of select="ancestor::ead/archdesc/did/head"/>
> </a>
> <br/><br/>
> 
> <!--CHANGED: VALUE-OF SELECT HAS ADDITION OF ANCESTOR::-->
> <a
>
href="{$file}.html#{generate-id(ancestor::ead/archdesc/bioghist/head)}">
> <xsl:value-of select="ancestor::ead/archdesc/bioghist/head"/>
> </a>
> <br/><br/>
> 
> <!--CHANGED: VALUE-OF SELECT HAS ADDITION OF ANCESTOR::-->
> <a
>
href="{$file}.html#{generate-id(ancestor::ead/archdesc/scopecontent/head)}">
> <xsl:value-of select="ancestor::ead/archdesc/scopecontent/head"/>
> </a>
> <br/><br/>
> <!--CHANGED: VALUE-OF SELECT HAS ADDITION OF ANCESTOR::-->
> <a
>
href="{$file}.html#{generate-id(ancestor::ead/archdesc/arrangement/head)}">
> <xsl:value-of select="ancestor::ead/archdesc/arrangement/head"/>
> </a>
> <br/><br/>
> 
> </b>
> </div>
> <hr/>
> 
> <div style="font-size:14">Detailed Description of the Collection /
> Box and Folder List</div>
> <br/>
> <!-- Displays the unittitle and unitdates for a c01 if it is a
> series and numbers them to form a hyperlink to each.-->
> 
> <!--CHANGED: FOR-EACH HAS ADDITION OF ANCESTOR::-->
> <xsl:for-each
> select="ancestor::ead/archdesc/dsc/c01[@level='series']">
> <a>
> <xsl:attribute name="href">
> <xsl:value-of select="$file"/>series<xsl:number value="position()"
> format="1"/>.html</xsl:attribute>
> 
> <xsl:apply-templates select="did/unittitle"/>
> <xsl:text>, </xsl:text>
> <xsl:apply-templates select="did/unitdate"/>
> <br/><br/>
> </a>
> </xsl:for-each>
> 
> <hr/>
> 
> 
> <div style="font-size:14">Information for researchers</div>
> <br/>
> 
> <!--CHANGED: IF TEST AND VALUE-OF SELECT HAVE ADDITIONS OF
> ANCESTOR::-->
> <xsl:if test="string(ancestor::ead/archdesc/prefercite/head)">
> <a
>
href="{$file}.html#{generate-id(ancestor::ead/archdesc/prefercite/head)}">
> <xsl:value-of select="ancestor::ead/archdesc/prefercite/head"/>
> </a>
> </xsl:if>
> <br/><br/>
> 
> <!--CHANGED: IF TEST AND VALUE-OF SELECT HAVE ADDITIONS OF
> ANCESTOR::-->
> <xsl:if test="string(ancestor::ead/archdesc/accessrestrict/head)">
> <a
>
href="{$file}.html#{generate-id(ancestor::ead/archdesc/accessrestrict/head)}">
> <xsl:value-of select="ancestor::ead/archdesc/accessrestrict/head"/>
> </a>
> </xsl:if>
> <br/><br/>
> 
> <!--CHANGED: IF TEST AND VALUE-OF SELECT HAVE ADDITIONS OF
> ANCESTOR::-->
> <xsl:if test="string(ancestor::ead/archdesc/userestrict/head)">
> <a
>
href="{$file}.html#{generate-id(ancestor::ead/archdesc/userestrict/head)}">
> <xsl:value-of select="ancestor::ead/archdesc/userestrict/head"/>
> </a>
> </xsl:if>
> <br/><br/>
> 
> <!--CHANGED: IF TEST AND VALUE-OF SELECT HAVE ADDITIONS OF
> ANCESTOR::-->
> <xsl:if
> test="string(ancestor::ead/archdesc/separatedmaterial/head)">
> <a
>
href="{$file}.html#{generate-id(ancestor::ead/archdesc/separatedmaterial/head)}">
> <xsl:value-of
> select="ancestor::ead/archdesc/separatedmaterial/head"/>
> </a>
> </xsl:if>
> <br/><br/>
> 
> <!--CHANGED: IF TEST AND VALUE-OF SELECT HAVE ADDITIONS OF
> ANCESTOR::-->
> <xsl:if test="string(ancestor::ead/archdesc/relatedmaterial/head)">
> <a
>
href="{$file}.html#{generate-id(ancestor::ead/archdesc/relatedmaterial/head)}">
> <xsl:value-of
> select="ancestor::ead/archdesc/relatedmaterial/head"/>
> </a>
> </xsl:if>
> <br/><br/>
> 
> <!--CHANGED: IF TEST AND VALUE-OF SELECT HAVE ADDITIONS OF
> ANCESTOR::-->
> <xsl:if test="string(ancestor::ead/archdesc/phystech/head)">
> <a
>
href="{$file}.html#{generate-id(ancestor::ead/archdesc/phystech/head)}">
> <xsl:value-of select="ancestor::ead/archdesc/phystech/head"/>
> </a>
> </xsl:if>
> </b>
> <br/><br/>
> 
> <hr/>
> 
> <div style="font-size:14"><b>Acquisition and Processing
> Information</b></div>
> <br/>
> <b>
> 
> <!--CHANGED: IF TEST AND VALUE-OF SELECT HAVE ADDITIONS OF
> ANCESTOR::-->
> <xsl:if test="string(ancestor::ead/archdesc/acqinfo/*)">
> <a
>
href="{$file}.html#{generate-id(ancestor::ead/archdesc/acqinfo/head)}">
> <xsl:value-of select="ancestor::ead/archdesc/acqinfo/head"/>
> </a>
> </xsl:if>
> <br/><br/>
> 
> <!--CHANGED: IF TEST AND VALUE-OF SELECT HAVE ADDITIONS OF
> ANCESTOR::-->
> <xsl:if test="string(ancestor::ead/archdesc/processinfo/*)">
> <a
>
href="{$file}.html#{generate-id(ancestor::ead/archdesc/processinfo/head)}">
> <xsl:value-of select="ancestor::ead/archdesc/processinfo/head"/>
> </a>
> </xsl:if>
> </b>
> <br/><br/>
> 
> <div style="margin-bottom:20px">
> <b><a href="mailto:YOUR-CONTACT@YOUR-EMAIL">Contact REPOSITORY
> NAME</a></b>
> <br/><br/>
> </div>
> </div>
> 
> <div style="font-size:23; margin-left:25%">
> <img src="YOUR-LOGO.gif"></img>
> </div>
> <br/>
> <!--TEMPLATE 19, LINE 406 FORMATS EADHEADER.-->
> 
> <div style="margin-left:35%; font-size:26">
> <b>
> <xsl:value-of
> select="ancestor::ead/eadheader/filedesc/titlestmt/titleproper"/>
> <xsl:text>  </xsl:text>
> <xsl:value-of
> select="ancestor::ead/eadheader/filedesc/titlestmt/subtitle"/>
> </b>
> <br/>
> <br/>
> </div>
> 
> <div style="margin-left:25%">
> <div style="font-size:20">
> <b>
> <xsl:value-of select="../head"/>
> </b>
> </div>
> 
> <xsl:for-each select="p">
> <p style="margin-left:25pt">
> <xsl:value-of select="."/>
> </p>
> </xsl:for-each>
> 
> <xsl:for-each select="did">
> <hr/>
> <b>
> <h2>
> <a>
> <xsl:attribute name="name">
> <xsl:text>series</xsl:text>
> <xsl:number from="dsc" count="c01"/>
> </xsl:attribute>
> <xsl:apply-templates select="unittitle"/>
> <xsl:if test="unitdate[string-length(text()|*)!=0]">
> <xsl:text>, </xsl:text>
> </xsl:if>
> <xsl:for-each select="unitdate">
> <xsl:apply-templates/>
> </xsl:for-each>
> </a>
> </h2>
> </b>
> 
> <h3>
> <xsl:apply-templates select="physdesc"/>
> </h3>
> </xsl:for-each>
> 
> <!--Closes the did.-->
> 
> <div style="margin-left:10pt; margin-right:10pt">
> <b><xsl:apply-templates select="scopecontent/head"/></b>
> 
> <xsl:for-each select="scopecontent/p">
> <p><xsl:value-of select="." /></p>
> </xsl:for-each>
> 
> 
> <xsl:for-each select="separatedmaterial/p">
> <p><xsl:value-of select="." /></p>
> </xsl:for-each>
> </div>
> 
> <!--Creates jump links to each of the subseries from the
> c01/arrangement lists.-->
> 
> <b>
> <p>
> <xsl:value-of select="arrangement/p"/>
> </p>
> <xsl:for-each select="arrangement/list/item">
> <xsl:variable name="subseriesNumber">
> <xsl:number />
> </xsl:variable>
> <div style="margin-left:25pt">
> <xsl:element name="a">
> <xsl:attribute name="href">#subseries<xsl:value-of
> select="$subseriesNumber"/></xsl:attribute>
> <xsl:value-of select="."/>
> </xsl:element>
> <br/><br/>
> </div>
> </xsl:for-each>
> </b>
> <br/>
> <hr></hr>
> <!--End creation of jump links.-->
> 
> 
> 
> <xsl:for-each select="c02">
> <xsl:choose>
> <xsl:when test="@level='subseries'">
> <xsl:for-each select="did">
> <b>
> <h3>
> <a>
> <xsl:attribute name="name">
> <xsl:text>subseries</xsl:text>
> <xsl:number from="c01" count="c02 "/>
> </xsl:attribute>
> <xsl:apply-templates select="unittitle"/>
> <xsl:if test="unitdate[string-length(text()|*)!=0]">
> <xsl:text>, </xsl:text>
> </xsl:if>
> <xsl:for-each select="unitdate">
> <xsl:apply-templates/>
> <xsl:text>.  </xsl:text>
> </xsl:for-each>
> </a>
> </h3>
> </b>
> <h3>
> <xsl:apply-templates select="physdesc"/>
> </h3>
> </xsl:for-each>
> 
> 
> <div style="margin-left:10pt; margin-right:10pt">
> <b><xsl:apply-templates select="scopecontent/head"/></b>
> <br/>
> 
> <xsl:for-each select="scopecontent/p">
> <p><xsl:apply-templates /></p>
> </xsl:for-each>
> 
> 
> <xsl:for-each select="accessrestrict/p">
> <p><xsl:apply-templates /></p>
> </xsl:for-each>
> 
> <xsl:for-each select="separatedmaterial/p">
> <p><xsl:value-of select="." /></p>
> </xsl:for-each>
> </div>
> </xsl:when>
> 
> <xsl:otherwise>
> <xsl:for-each select="did">
> <div style="margin-left:10pt; margin-right:10pt">
> <b>
> 
> <xsl:variable name="first" select="container[@type='Box' or
> @type='Oversize' or @type='Map-case' or @type='Volume' or
> @type='Carton']"/>
> 
> <xsl:variable name="second" select="container[@type='Folder' or
> @type='Frame' or @type='Page'  or @type='Reel']"/>
> 
> <br/>
> 
> <xsl:value-of select="$first/@type"/><xsl:text>
> </xsl:text><xsl:value-of select="container[@type='Box']"/>
> 
> <xsl:if test="container[@type='Folder']">
> <xsl:text> / </xsl:text>
> <xsl:value-of select="$second/@type"/><xsl:text>
> </xsl:text><xsl:value-of select="container[@type='Folder']"/>
> </xsl:if>
> 
> <br/>
> 
> <xsl:apply-templates select="unittitle"/>
> <xsl:if test="unitdate[string-length(text()|*)!=0]">
> <xsl:text>, </xsl:text>
> </xsl:if>
> <xsl:for-each select="unitdate">
> <xsl:apply-templates/>
> </xsl:for-each>
> </b>
> </div>			
> </xsl:for-each>
> 
> 
> <!--Closes the did.-->
> 
> 
> <div style="margin-left:10pt; margin-right:10pt">
> <xsl:for-each select="scopecontent">
> <xsl:apply-templates/>
> <br/><br/>
> </xsl:for-each>
> 
> <xsl:for-each select="note/p">
> <xsl:apply-templates/>
> <br/><br/>
> </xsl:for-each>
> 
> 
> <xsl:for-each select="separatedmaterial/p">
> <xsl:apply-templates/>
> <br/><br/>
> </xsl:for-each>
> </div>
> <xsl:if test="position()=last()">
> <hr/>
> </xsl:if>
> </xsl:otherwise>
> </xsl:choose>
> 
> <xsl:for-each select="c03">
> <xsl:for-each select="did">
> <div style="margin-left:10pt; margin-right:10pt">
> <b>
> 
> <xsl:variable name="first" select="container[@type='Box' or
> @type='Oversize' or @type='Map-case' or @type='Volume' or
> @type='Carton']"/>
> 
> <xsl:variable name="second" select="container[@type='Folder' or
> @type='Frame' or @type='Page'  or @type='Reel']"/>
> 
> <br/>
> 
> <xsl:value-of select="$first/@type"/><xsl:text>
> </xsl:text><xsl:value-of select="container[@type='Box']"/>
> 
> <xsl:if test="container[@type='Folder']">
> <xsl:text> / </xsl:text>
> <xsl:value-of select="$second/@type"/><xsl:text>
> </xsl:text><xsl:value-of select="container[@type='Folder']"/>
> </xsl:if>
> 
> 
> <xsl:if test="container[@type='Oversize']">
> <xsl:value-of select="$second"/>
> <xsl:text> </xsl:text>
> <xsl:value-of select="container[@type='Oversize']"/>
> </xsl:if>
> 
> 
> <xsl:if test="container[@type='Map-case']">
> <xsl:value-of select="$second"/>
> <xsl:text> </xsl:text>
> <xsl:value-of select="container[@type='Map-case']"/>
> </xsl:if>
> 
> <br/>
> 
> <xsl:apply-templates select="unittitle"/>
> <xsl:if test="unitdate[string-length(text()|*)!=0]">
> <xsl:text>, </xsl:text>
> </xsl:if>
> <xsl:for-each select="unitdate">
> <xsl:apply-templates/>
> </xsl:for-each>
> </b>
> </div>			
> </xsl:for-each>
> 
> 
> <!--Closes the did.-->
> 
> <div style="margin-left:10pt; margin-right:10pt">
> <xsl:for-each select="scopecontent">
> <xsl:apply-templates/>
> <br/><br/>
> </xsl:for-each>
> 
> <xsl:for-each select="note/p">
> <xsl:apply-templates/>
> <br/><br/>
> </xsl:for-each>
> 
> 
> <xsl:for-each select="separatedmaterial/p">
> <xsl:apply-templates/>
> <br/><br/>
> </xsl:for-each>
> </div>
> <xsl:if test="position()=last()">
> <hr/>
> </xsl:if>
> </xsl:for-each>
> </xsl:for-each>
> 
> </div>
> </body>
> </html>
> </xsl:document>
> </xsl:for-each>
> 
> </xsl:template>
> 
> 
> <!--TEMPLATE 3: META TAGS (DUBLIN CORE)-->
> <xsl:template name="metadata">
> 
> <meta http-equiv="Content-Type" name="dc.title"
> content="{eadheader/filedesc/titlestmt/titleproper 
> }{eadheader/filedesc/titlestmt/subtitle}"/>
> 
> <meta http-equiv="Content-Type" name="dc.author"
> content="{ead/archdesc/did/origination}"/>
> 
> <xsl:for-each select="//controlaccess/persname |
> //controlaccess/corpname">
> <xsl:choose>
> <xsl:when test="@encodinganalog='600'">
> <meta http-equiv="Content-Type" name="dc.subject" content="{.}"/>
> 
> </xsl:when>
> <xsl:when test="//@encodinganalog='610'">
> <meta http-equiv="Content-Type" name="dc.subject" content="{.}"/>
> </xsl:when>
> <xsl:when test="//@encodinganalog='611'">
> <meta http-equiv="Content-Type" name="dc.subject" content="{.}"/>
> </xsl:when>
> 
> <xsl:when test="//@encodinganalog='700'">
> <meta http-equiv="Content-Type" name="dc.contributor"
> content="{.}"/>
> </xsl:when>
> <xsl:when test="//@encodinganalog='710'">
> <meta http-equiv="Content-Type" name="dc.contributor"
> content="{.}"/>
> </xsl:when>
> 
> <xsl:otherwise>
> <meta http-equiv="Content-Type" name="dc.contributor"
> content="{.}"/>
> </xsl:otherwise>
> </xsl:choose>
> 
> </xsl:for-each>
> <xsl:for-each select="//controlaccess/subject">
> <meta http-equiv="Content-Type" name="dc.subject" content="{.}"/>
> </xsl:for-each>
> <xsl:for-each select="//controlaccess/geogname">
> <meta http-equiv="Content-Type" name="dc.subject" content="{.}"/>
> </xsl:for-each>
> 
> <meta http-equiv="Content-Type" name="dc.title"
> content="{ead/archdesc/did/unittitle}"/>
> <meta http-equiv="Content-Type" name="dc.type" content="text"/>
> <meta http-equiv="Content-Type" name="dc.format"
> content="manuscripts"/>
> <meta http-equiv="Content-Type" name="dc.format" content="finding
> aids"/>
> </xsl:template>
> <!--END TEMPLATE 3 (metadata)-->
> 
> 
> 
> 
> <!--TEMPLATES 6-15: TEXT RENDERING ATTRIBUTES-->
> 
> <xsl:template match="title[@render='italic']">
> <i>
> <xsl:apply-templates/>
> </i>
> </xsl:template>
> 
> <xsl:template match="title[@render='doublequote']">
> <xsl:text>"</xsl:text>
> <xsl:apply-templates/>
> <xsl:text>"</xsl:text>
> </xsl:template>
> 
> <xsl:template match="title[@render='singlequote']">
> <xsl:text>'</xsl:text>
> <xsl:apply-templates/>
> <xsl:text>'</xsl:text>
> </xsl:template>
> 
> <xsl:template match="title[@render='bold']">
> <b>
> <xsl:apply-templates/>
> </b>
> </xsl:template>
> 
> <xsl:template match="title[@render='underline']">
> <u>
> <xsl:apply-templates/>
> </u>
> </xsl:template>
> 
> <xsl:template match="emph[@render='italic']">
> <i>
> <xsl:apply-templates/>
> </i>
> </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='singlequote']">
> <xsl:text>'</xsl:text>
> <xsl:apply-templates/>
> <xsl:text>'</xsl:text>
> </xsl:template>
> 
> <xsl:template match="emph[@render='bold']">
> <b>
> <xsl:apply-templates/>
> </b>
> </xsl:template>
> 
> <xsl:template match="emph[@render='underline']">
> <u>
> <xsl:apply-templates/>
> </u>
> </xsl:template>
> 
> <!--END TEMPLATES 6-15-->
> 
> 
> <!--TEMPLATE 16.1: OUTPUT <extref> TO HTML <a href>.-->
> <xsl:template match="ead/archdesc/relatedmaterial/p/extref">
> <xsl:element name="a">
> <xsl:attribute name="href"><xsl:value-of select="@href"
> /></xsl:attribute>
> <xsl:attribute name="role"><xsl:value-of select="@role"
> /></xsl:attribute>
> <xsl:attribute name="actuate"><xsl:value-of select="@actuate"
> /></xsl:attribute>
> <xsl:attribute name="show"><xsl:value-of select="@show"
> /></xsl:attribute>
> <xsl:apply-templates />
> </xsl:element>
> </xsl:template>
> 
> 
> 
> <!--TEMPLATE 16.2: OUTPUT <extref> TO HTML <a href>, puts link on a
> new line.-->
> <xsl:template match="ead/archdesc/dsc//extref">
> <br/>
> <xsl:element name="a">
> <xsl:attribute name="href"><xsl:value-of select="@href"
> /></xsl:attribute>
> <xsl:attribute name="role"><xsl:value-of select="@role"
> /></xsl:attribute>
> <xsl:attribute name="actuate"><xsl:value-of select="@actuate"
> /></xsl:attribute>
> <xsl:attribute name="show"><xsl:value-of select="@show"
> /></xsl:attribute>
> <xsl:apply-templates />
> </xsl:element>
> </xsl:template>
> 
> 
> <!--TEMPLATES 17-18: FORMAT LISTS (EXCEPT IN ARRANGEMENT
> ELEMENT)-->
> <xsl:template match="list[parent::*[not(self::arrangement)]]/head">
> <div style="margin-left: 25pt">
> <b>
> <xsl:apply-templates/>
> </b>
> </div>
> </xsl:template>
> 
> <xsl:template match="list[parent::*[not(self::arrangement)]]/item">
> <div style="margin-left: 40pt">
> <xsl:apply-templates/>
> </div>
> </xsl:template>
> <!--END TEMPLATES 17-18-->
> 
> 
> <!--TEMPLATE 19: SUPPRESS ALL OTHER ELEMENTS OF EADHEADER (see line
> 278 in template 5)-->
> <xsl:template match="eadheader">
> <h1 style="margin-left:40pt">
> <xsl:value-of select="filedesc/titlestmt/titleproper"/>
> </h1>
> <h2 style="margin-left:40pt">
> <xsl:value-of select="filedesc/titlestmt/subtitle"/>
> </h2>
> <br></br>
> <br/><br/>
> </xsl:template>
> <!--END TEMPLATE 19-->
> 
> 
> <!--TEMPLATE 20: FORMATS TABLE FOR ARCHDESC/DID-->
> <!--This template creates a table for the did, inserts the head and
> then each of the other did elements.  To change the order of
> appearance of these elements, change the sequence of the
> apply-templates statements.-->
> 
> <xsl:template match="ead/archdesc/did">
> <table width="100%">
> <tr>
> <td width="15%"></td>
> <td width="45%"></td>
> </tr>
> 
> <tr>
> <td colspan="2">
> <b>
> <div style="font-size:16">
> <a name="{generate-id(head)}">
> <xsl:apply-templates select="head"/>
> </a>
> </div>
> </b>
> </td>
> </tr>
> 
> 
> 
> <!--One can change the order of appearance for the children of did 
> 			by changing the order of the following statements.-->
> <div style="font-size:13">
> <xsl:apply-templates select="repository"/>
> <xsl:apply-templates select="origination"/>
> <xsl:apply-templates select="unittitle"/>
> <xsl:apply-templates select="unitdate"/>
> <xsl:apply-templates select="physdesc"/>
> <xsl:apply-templates select="abstract"/>
> <xsl:apply-templates select="unitid"/>
> <xsl:apply-templates select="langmaterial"/>
> </div>
> </table>
> <p>
> <a href="{$file}.html">Return to Top</a>
> </p>
> <hr></hr>
> </xsl:template>
> 
> 
> <!--END TEMPLATE 20-->
> 
> 
> <!--TEMPLATE 21-->
> <!--This template formats the repostory, origination, unittitle,
> unitdate, physdesc, abstract, unitid, and langmaterial elements of
> ead/archdesc/did.  The sequence of their appearance is governed by
> Template 20.-->
> 
> <xsl:template match="ead/archdesc/did/repository |
> ead/archdesc/did/origination | ead/archdesc/did/unittitle |
> ead/archdesc/did/unitdate | ead/archdesc/did/physdesc |
> ead/archdesc/did/unitid | ead/archdesc/did/physloc |
> ead/archdesc/did/abstract | ead/archdesc/did/langmaterial |
> ead/archdesc/did/materialspec">
> <tr>
> <td valign="top">
> <b>
> <div style="font-size:12">
> <xsl:value-of select="@label"/>
> </div>
> </b>
> </td>
> <td>
> <div style="font-size:12">
> <xsl:apply-templates/>
> </div>
> </td>
> </tr>
> </xsl:template>
> 
> 
> <!--END TEMPLATE 21-->
> 
> 
> <!--TEMPLATE 22: FORMATS SCOPECONTENT, ARRANGEMENT,
> BIOGRAPHY/HISTORY, AND ODD-->
> <xsl:template match="ead/archdesc/scopecontent | 
> ead/archdesc/arrangement | ead/archdesc/bioghist |
> ead/archdesc/odd">
> <xsl:if test="string(child::*)">
> <xsl:apply-templates/>
> <p>
> <a href="{$file}.html">Return to Top</a>
> </p>
> <hr></hr>
> </xsl:if>
> </xsl:template>
> <!--END TEMPLATE 22-->
> 
> 
> <!--TEMPLATE 23: MATCHES VARIOUS HEAD ELEMENTS AND MAKES THEM LINK
> BACK TO THE TOC-->
> <xsl:template match="ead/archdesc/scopecontent/head |
> ead/archdesc/arrangement/head  | ead/archdesc/bioghist/head |
> ead/archdesc/odd/head">
> <h3>
> <a name="{generate-id()}">
> <xsl:apply-templates/>
> </a>
> </h3>
> </xsl:template>
> <!--END TEMPLATE 23-->
> 
> <!--TEMPLATE 24: MATCHES PARAGRAPH ELEMENTS CORRESPONDING TO HEAD
> ELEMENTS IN TEMPLATE 23-->
> <xsl:template match="ead/archdesc/scopecontent/p |
> ead/archdesc/scopecontent/scopecontent/p |
> ead/archdesc/arrangement/p | ead/archdesc/bioghist/p |
> ead/archdesc/bioghist/bioghist/p | ead/archdesc/odd/p ">
> <p style="margin-left:25 pt">
> <xsl:apply-templates/>
> </p>
> </xsl:template>
> <!--END TEMPLATE 24-->
> 
> 
> <!--TEMPLATES 25-26: FORMAT AN ARRANGEMENT ELEMENT EMBEDDED IN A
> SCOPECONTENT-->
> <xsl:template match="ead/archdesc/scopecontent/arrangement/head">
> <p style="margin-left:25pt">
> <a name="{generate-id()}">
> <xsl:apply-templates/>
> </a>
> </p>
> 
> </xsl:template>
> 
> <xsl:template match="ead/archdesc/scopecontent/arrangement/p">
> <p style="margin-left:50pt">
> <xsl:apply-templates/>
> </p>
> </xsl:template>
> <!--END TEMPLATES 25-26-->
> 
> 
> <!--TEMPLATES 27-28: FORMAT A LIST WITHIN AN ARRANGEMENT ELEMENT-->
> <xsl:template match="ead/archdesc/arrangement/list/head">
> <p style="margin-left:25pt">
> <xsl:apply-templates/>
> </p>
> </xsl:template>
> 
> <xsl:template match="ead/archdesc/arrangement/list/item">
> <div style="margin-left:50pt">
> <xsl:element name="a">
> <xsl:attribute name="href">#series<xsl:number/>
> </xsl:attribute>
> <xsl:apply-templates/>
> </xsl:element>
> </div>
> </xsl:template>
> <!--END TEMPLATES 27-28-->
> 
> 
> 
> <!--TEMPLATES : INFORMATION FOR RESEARCHERS ELEMENTS-->
> <xsl:template match="ead/archdesc/prefercite |
> ead/archdesc/accessrestrict | ead/archdesc/userestrict |
> ead/archdesc/relatedmaterial | ead/archdesc/separatedmaterial |
> ead/archdesc/phystech">
> <xsl:if test="string(child::*)">
> <xsl:apply-templates/>
> </xsl:if>
> <a href="{$file}.html">Return to Top</a>
> </xsl:template>
> 
> <!--TEMPLATE : MATCHES VARIOUS HEAD ELEMENTS AND MAKES THEM LINK
> BACK TO THE TOC-->
> <xsl:template match="ead/archdesc/prefercite/head |
> ead/archdesc/accessrestrict/head | ead/archdesc/userestrict/head |
> ead/archdesc/relatedmaterial/head |
> ead/archdesc/separatedmaterial/head | ead/archdesc/phystech/head">
> <h3>
> <a name="{generate-id()}">
> <xsl:apply-templates/>
> </a>
> </h3>
> </xsl:template>
> 
> <!--TEMPLATE : MATCHES PARAGRAPH ELEMENTS CORRESPONDING TO HEAD
> ELEMENTS IN TEMPLATE 23-->
> 
> <xsl:template match="ead/archdesc/prefercite/p |
> ead/archdesc/accessrestrict/p | ead/archdesc/userestrict/p |
> ead/archdesc/relatedmaterial/p | ead/archdesc/separatedmaterial/p |
> ead/archdesc/phystech/p">
> <p style="margin-left:25pt">
> <xsl:apply-templates/>
> </p>
> <xsl:if test="position()=last()">
> <br/>
> </xsl:if>
> </xsl:template>
> 
> 
> 
> <!--TEMPLATES 33-35: ACQUISTION AND PROCESSING INFORMATION-->
> <xsl:template match="ead/archdesc/acqinfo |
> ead/archdesc/processinfo">
> <xsl:if test="string(child::*)">
> <xsl:apply-templates/>
> </xsl:if>
> <a href="{$file}.html">Return to Top</a>
> </xsl:template>
> 
> 
> <xsl:template match="ead/archdesc/acqinfo/head |
> ead/archdesc/custodhist/head | ead/archdesc/processinfo/head">
> <h3>
> <a name="{generate-id()}">
> <xsl:apply-templates/>
> </a>
> </h3>
> </xsl:template>
> 
> <xsl:template match="ead/archdesc/acqinfo/p |
> ead/archdesc/custodhist/p | ead/archdesc/processinfo/p">
> <p style="margin-left:25pt">
> <xsl:apply-templates/>
> </p>
> <xsl:if test="position()=last()">
> <br/>
> </xsl:if>
> </xsl:template>
> <!--END TEMPLATES 33-35-->
> 
> </xsl:stylesheet>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

March 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
January 2001
December 2000
November 2000
October 2000
September 2000
August 2000
July 2000
June 2000
May 2000
April 2000
March 2000
February 2000
January 2000
December 1999
November 1999
October 1999
September 1999
August 1999
July 1999
June 1999
May 1999
April 1999
March 1999
February 1999
January 1999
December 1998
November 1998
October 1998
September 1998
August 1998
July 1998
June 1998
May 1998
April 1998
March 1998
February 1998
January 1998
December 1997
November 1997
October 1997
September 1997
August 1997
July 1997
June 1997
May 1997
April 1997
March 1997
February 1997
January 1997
December 1996
November 1996
October 1996
September 1996
August 1996
July 1996
June 1996
May 1996
April 1996
March 1996
February 1996
December 1995

ATOM RSS1 RSS2



LISTSERV.LOC.GOV

CataList Email List Search Powered by the LISTSERV Email List Manager