<?xml version="1.0" encoding="us-ascii"?>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- acls-hebook.xsl version 1.3 2-20-2008 -->
<!-- copyright by acls humanities e-book -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="html" encoding="UTF-8"/>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- match text, open html, body, header gif-->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<xsl:template match="text">
<html>
<head>
<title>ACLS Humanities E-Book, <xsl:value-of select="front/titlepage/docauthor"/></title>
<script language="javascript" src="../../xsl/files/textclass.js"></script>
<script language="javascript" src="../../xsl/files/bbagwindow.js" type="text/javascript"></script>
<link href="../../xsl/files/textclass.css" type="text/css" rel="stylesheet"/>
<link href="../../xsl/files/textclass-specific.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<!-- header gif -->

<table border="0" width="800" align="center">
<tr>
<td valign="bottom" colspan="2"><img src="../../xsl/files/logotext.gif" alt="ACLS Humanities E-Book" width="792" height="74" border="0"/></td>
</tr>
<tr>
<td colspan="2">
<span class="mainnavcell"><span class="main-navlinks"><a class="main-nav" href="http://quod.lib.umich.edu/cgi/t/text/text-idx?c=acls;rgn=full%20text;page=simple" target="_top">SEARCH</a></span></span><span class="mainnavcell"><span class="main-navlinks"><a class="main-nav" href="/a/acls/browse.html" target="_top">BROWSE</a></span></span><span class="mainnavcell"><span class="main-navlinks"><a class="main-nav" href="http://www.humanitiesebook.org/help.html" target="_top">HELP</a></span></span><span class="mainnavcell"><span class="main-navlinks"><a class="main-nav" href="http://humanitiesebook.org/" target="_top">HOME</a></span></span><span class="mainnavcell"><span class="main-navlinks"><a class="main-nav" href="http://www.humanitiesebook.org/terms.html" target="_top">TERMS</a></span></span>
</td>
</tr>
<tr><td><img src="../../xsl/files/proof-single.gif" width="420" height="113" align="top"/></td>
<td> This page was created using acls-hebook.xsl<br/> to transform XML-encoded text into HTML.<br/> Final online version will break down and<br/> display text in separate sections and<br/> note references will link to pop-up windows.</td></tr>
</table>

<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- cover, title info, call toc, start content well -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<table border="0" width="670" align="center">
<xsl:variable name="cover" select="@id"/>
<tr><td width="30"><img alt="" src="../../xsl/files/pixel.gif" border="0" width="30"/></td><td><hr color="#7e7e7e" size="2"/></td></tr>
<tr>
<td width="30"><img alt="" src="../../xsl/files/pixel.gif" border="0" width="30"/></td>
<td valign="top"><a href="../../figures/covers/{$cover}.0001.001-lg.jpg" target="new"><img src="../../figures/covers/{$cover}.0001.001.jpg" alt="cover" align="left" vspace="10" hspace="8"/></a>
<b><xsl:value-of select="front/titlepage/doctitle/titlepart[@type='main']"/>: <xsl:value-of select="front/titlepage/doctitle/titlepart[@type='subtitle']"/></b><br/>
<xsl:value-of select="front/titlepage/docauthor"/><br/>
<xsl:value-of select="front/titlepage/docimprint/publisher"/><br/>
<xsl:value-of select="front/titlepage/docimprint/pubplace"/><br/>
</td>
</tr>
</table>
<!-- call toc template -->
<xsl:call-template name="toc"/>
<!-- start content well - start all dynamic content -->
<xsl:apply-templates/>
<!-- end content well - end all dynamic content-->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- footer -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<table width="100%" cellspacing="1">
<tr>
<td width="10%" align="left" valign="top"></td>
<td width="80%" align="center" valign="top"><p align="center"><span class="foot">Site created by the <a href="http://spo.umdl.umich.edu" class="foot" target="new">Scholarly Publishing Office</a> of the University of Michigan Library<br/> for ACLS Humanities E-Book<br/> &#169; American Council of Learned Societies<br/>For more information, please contact <a href="mailto:info@hebook.org">info@hebook.org</a></span></p></td>
<td width="10%" valign="top" align="right"></td>
</tr>
</table>

</body>
</html>
</xsl:template>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- match doctitle, docauthor, docimprint (does not show anything) -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<xsl:template match="doctitle/titlepart[@type='main']"/>
<xsl:template match="doctitle/titlepart[@type='subtitle']"/>
<xsl:template match="docauthor"/>
<xsl:template match="docimprint/publisher"/>
<xsl:template match="docimprint/pubplace"/>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- template: toc -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<xsl:template name="toc">
<table width="670" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"><img src="../../xsl/files/pixel.gif" border="0" width="30" height="0"/></td>
<td align="left">
<table width="100%" align="left" border="0" cellspacing="0" cellpadding="0">
<tr><td colspan="3"><hr color="#7e7e7e" size="2"/></td></tr>
<tr><td colspan="3" align="left"><a name="TOC"><img src="../../xsl/files/circle.gif" border="0" alt="bullet" hspace="6"/><span class="head">table of contents</span></a><br/><br/>

<table width="100%" align="left" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../../xsl/files/pixel.gif" border="0" width="20" height="0"/></td>
<td width="100%">

<xsl:for-each select="/text/*/div1">
<div class="indentlevel1">
<span class="divhead">
<table border="0">
<tr>
<td colspan="2" align="left"><span class="div1head">
<xsl:choose>
<xsl:when test="@status='hidden'"><xsl:call-template name="toc_notlink"/></xsl:when>
<xsl:otherwise><xsl:call-template name="toc_link"/></xsl:otherwise>
</xsl:choose></span>
</td>
</tr>
</table></span>
</div>

<xsl:for-each select="div2">
<div class="indentlevel2">
<span class="divhead">
<table border="0">
<tr>
<td colspan="2" align="left"><span class="div2head">
<xsl:choose>
<xsl:when test="@status='hidden'"><xsl:call-template name="toc_notlink"/></xsl:when>
<xsl:otherwise><xsl:call-template name="toc_link"/></xsl:otherwise>
</xsl:choose></span>
</td>
</tr>
</table></span>
</div>

<xsl:for-each select="div3">
<div class="indentlevel3">
<span class="divhead">
<table border="0">
<tr>
<td colspan="2" align="left"><span class="div3head">
<xsl:choose>
<xsl:when test="@status='hidden'"><xsl:call-template name="toc_notlink"/></xsl:when>
<xsl:otherwise><xsl:call-template name="toc_link"/></xsl:otherwise>
</xsl:choose></span>
</td>
</tr>
</table></span>
</div>

<xsl:for-each select="div4">
<div class="indentlevel4">
<span class="divhead">
<table border="0">
<tr>
<td colspan="2" align="left"><span class="div4head">
<xsl:choose>
<xsl:when test="@status='hidden'"><xsl:call-template name="toc_notlink"/></xsl:when>
<xsl:otherwise><xsl:call-template name="toc_link"/></xsl:otherwise>
</xsl:choose></span>
</td>
</tr>
</table></span>
</div>
</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
</td></tr></table>
</td></tr></table>
</td></tr></table>
</xsl:template>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- template toc_link -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<xsl:template name="toc_link">
<xsl:element name="a">
<xsl:attribute name="href">#<xsl:value-of select="@id"/></xsl:attribute>
<xsl:if test="head/bibl[@type='number']">
<xsl:value-of select="head/bibl[@type='number']"/>:
</xsl:if>
<xsl:value-of select="head/bibl[@type='title']"/>
<xsl:if test="head/bibl[@type='subtitle']">: <xsl:value-of select="head/bibl[@type='subtitle']"/>
</xsl:if>
<xsl:if test="head/bibl[@type='byline']">, <xsl:value-of select="head/bibl[@type='byline']"/></xsl:if>
<xsl:if test="head/bibl[@type='para']"> [para. <xsl:value-of select="head/bibl[@type='para']"/>]
</xsl:if>
</xsl:element>
</xsl:template>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- template toc_notlink -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<xsl:template name="toc_notlink">
<xsl:if test="head/bibl[@type='number']">
<xsl:value-of select="head/bibl[@type='number']"/>:
</xsl:if>
<xsl:value-of select="head/bibl[@type='title']"/>
<xsl:if test="head/bibl[@type='subtitle']">: <xsl:value-of select="head/bibl[@type='subtitle']"/>
</xsl:if>
<xsl:if test="head/bibl[@type='byline']">, <xsl:value-of select="head/bibl[@type='byline']"/></xsl:if>
<xsl:if test="head/bibl[@type='para']"> [para. <xsl:value-of select="head/bibl[@type='para']"/>]
</xsl:if>
</xsl:template>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- divs = shell table, anchors for div ids -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<xsl:template match="div1[not(@status='hidden')] | div2[not(@status='hidden')] | div3[not(@status='hidden')] | div4[not(@status='hidden')]">
<xsl:element name="a"><xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute></xsl:element>
<table width="670" align="center" border="0">
<tbody>
<tr>
<td colspan="2" height="10"><img src="../../xsl/files/pixel.gif" border="0" height="10"/></td></tr>
<tr>
<td width="70"><img src="../../xsl/files/pixel.gif" border="0" width="70"/></td>
<td><xsl:apply-templates/></td><td width="70"><img src="../../xsl/files/pixel.gif" border="0" width="70"/></td>
</tr>
</tbody>
</table>
<hr/><br/><b>END DIV SECTION</b><br/><hr/>
</xsl:template>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- heads -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<xsl:template match="div1/head">
<span class="divhead">
<table border="0" width="530">
<tbody>
<tr><td align="left" colspan="2"><span class="div1head"><xsl:apply-templates/></span></td></tr>
<tr><td colspan="2" height="20"><img src="../../xsl/files/pixel.gif" border="0" height="20"/></td></tr>
</tbody></table>
</span>
</xsl:template>

<xsl:template match="div2/head">
<span class="divhead">
<table border="0" width="530">
<tbody>
<tr><td align="left" colspan="2"><span class="div2head"><xsl:apply-templates/></span></td></tr>
<tr><td colspan="2" height="20"><img src="../../xsl/files/pixel.gif" border="0" height="20"/></td></tr>
</tbody></table>
</span>
</xsl:template>

<xsl:template match="div3/head">
<table border="0" width="530">
<tbody>
<tr><td valign="top" align="left" width="22"><img width="22" src="../../xsl/files/pixel.gif" border="0"/></td>
<td><span class="div3head"><xsl:apply-templates/></span></td></tr>
<tr><td colspan="2" height="20"><img src="../../xsl/files/pixel.gif" border="0" height="20"/></td></tr>
</tbody></table>
</xsl:template>

<xsl:template match="div4/head">
<table border="0" width="530">
<tbody>

<tr><td valign="top" align="left" width="22"><img width="22" src="../../xsl/files/pixel.gif" border="0"/></td>
<td><span class="div4head"><xsl:apply-templates/></span></td></tr>
<tr><td colspan="2" height="20"><img src="../../xsl/files/pixel.gif" border="0" height="20"/></td></tr>
</tbody></table>
</xsl:template>

<xsl:template match="table/head"><thead><h6><xsl:apply-templates/></h6></thead></xsl:template>
<xsl:template match="list/head"><h6><xsl:apply-templates/></h6></xsl:template>
<xsl:template match="lg/head"><h6><xsl:apply-templates/></h6></xsl:template>
<xsl:template match="insert/head"><h6><xsl:apply-templates/></h6></xsl:template>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- bibl in head -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<xsl:template match="bibl" name="bibl">
<xsl:choose>
<xsl:when test="@type='number'"><xsl:apply-templates/>: </xsl:when>
<xsl:when test="@type='title'"><xsl:apply-templates/></xsl:when>
<xsl:when test="@type='subtitle'">: <xsl:apply-templates/></xsl:when>
<xsl:when test="@type='byline'">, <xsl:apply-templates/></xsl:when>
<xsl:when test="@type='para'"> [para. <xsl:apply-templates/>]</xsl:when>
<xsl:when test="parent::epigraph"><blockquote><xsl:apply-templates/></blockquote></xsl:when>
<xsl:when test="ancestor::figure"><h5><xsl:apply-templates/></h5></xsl:when>
<xsl:when test="@id"><a name="{@id}"/><p class="bibitem"><xsl:apply-templates/></p></xsl:when>
<xsl:otherwise><xsl:apply-templates/></xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- paragraph -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<xsl:template match="p">
<xsl:choose>
<xsl:when test="@id">
<table width="100%" border="0">
<tbody>
<tr>
<td valign="top" align="left" width="22"><span class="pnum" valign="bottom"><xsl:value-of select="@n"/></span><a name="{@id}"></a></td>
<td class="textbody"><xsl:apply-templates/></td>
</tr>
</tbody>
</table>
</xsl:when>
<xsl:when test="parent::note1 | child::insert">
<xsl:apply-templates/><br /><br />
</xsl:when>
<xsl:otherwise>
<p align="{@align}"><xsl:apply-templates/></p>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- page break -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<xsl:template match="pb">
<a name="{@id}">[Page <xsl:value-of select="@n"/><xsl:apply-templates/>] </a>
</xsl:template>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- notes -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<xsl:template match="note1">
<a name="{@id}"/><p class="note"><xsl:value-of select="@n"/>. <xsl:apply-templates/></p>
</xsl:template>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- figures -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<xsl:template match="figure">
<div class="figure">
<a name="{@id}"></a>
<a href="../../figures/{@entity}-lg.jpg" target="image" border="0"><img src="../../figures/{@entity}.jpg" border="0" align="center" vspace="10" hspace="8"/><br/>
<img src="../../xsl/files/enlarge.gif" border="0"/></a>
<xsl:apply-templates/>
</div>
</xsl:template>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- lists -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<xsl:template match="list">
<ul><xsl:apply-templates/></ul><br/>
</xsl:template>
<xsl:template match="item">
<li><xsl:apply-templates/></li>
</xsl:template>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- dateline  -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<xsl:template match="dateline">
<p align="{@align}"><xsl:apply-templates/></p>
</xsl:template>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- table and insert -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<xsl:template match="table">
<xsl:choose>
<xsl:when test="@type='insert'">
<table  id="{@id}" cellpadding="35" border="1">
<tbody><xsl:apply-templates/></tbody>
</table>
<br/>
</xsl:when>
<xsl:otherwise>
<table  id="{@id}" cellpadding="3" border="{@border}" align="{@align}">
<tbody><xsl:apply-templates/></tbody>
</table>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="row">
<tr rowspan="{@rowspan}"><xsl:apply-templates/></tr>
</xsl:template>
<xsl:template match="cell">
<xsl:choose>
<xsl:when test="@type='letter'">
<td valign="top" class="letter"><xsl:apply-templates/></td>
</xsl:when>
<xsl:otherwise>
<td valign="top" colspan="{@colspan}"><xsl:apply-templates/></td>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- epigraph -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<xsl:template match="epigraph">
<blockquote><xsl:apply-templates/></blockquote>
</xsl:template>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- q1 extracts -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<xsl:template match="q1">
<blockquote><xsl:apply-templates/></blockquote>
</xsl:template>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- line group and lines -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<xsl:template match="lg">
<blockquote><p class="lg"><xsl:apply-templates/></p></blockquote>
</xsl:template>
<xsl:template match="l">
<xsl:apply-templates/><br/>
</xsl:template>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- ptr for index, internal linking and ptr links to popup notes -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- index and internal ptrs -->
<xsl:template match="ptr">
<xsl:choose>
<xsl:when test="@type='txt'"><a href="#{@target}"><xsl:value-of select="@n"/></a></xsl:when>
<xsl:otherwise><xsl:text> </xsl:text><a href="#{@target}">[<xsl:value-of select="@n"/>]</a><xsl:text> </xsl:text></xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- refs, links to urls and ptrs to other ids within xml -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<xsl:template match="ref">
<xsl:choose>
<xsl:when test="@type='url'"><a href="{@url}" target="new"><xsl:apply-templates/></a></xsl:when>
<xsl:when test="@type='ptr'"><a href="#{@target}"><xsl:apply-templates/></a></xsl:when>
<xsl:when test="@type='images'"><a href="http://images.umdl.umich.edu/cgi/i/image/image-idx?q1={@id}&amp;rgn1=aclsic_hebid&amp;type=boolean&amp;view=thumbnail&amp;c=aclsic"><xsl:apply-templates/></a></xsl:when>
<xsl:when test="@type='audio'"><a name="{@id}"></a>
<a href="../../figures/{@filename}" target="image" border="0">
<xsl:apply-templates/></a></xsl:when>
<xsl:when test="@type='video'"><a name="{@id}"></a>
<a href="../../figures/{@filename}" target="image" border="0">
<xsl:apply-templates/></a></xsl:when>
</xsl:choose>
</xsl:template>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- salute / signed-->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<xsl:template match="salute | signed">
<xsl:choose>
<xsl:when test="parent::insert"><p align="{@align}"><xsl:apply-templates/></p></xsl:when>
<xsl:otherwise><blockquote><p align="{@align}"><xsl:apply-templates/></p></blockquote></xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- milestone, hi1 rend - italics, bold, etc. -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- milestone -->
<xsl:template match="milestone">
<xsl:choose>
<xsl:when test="@rend='asterisk'"><center><p>***</p></center></xsl:when>
<xsl:when test="@rend='skipline'"><img src="../../xsl/files/pixel.gif" border="0" width="0" height="20"/></xsl:when>
</xsl:choose>
</xsl:template>
<!-- hi1 rend, italics etc. -->
<xsl:template match="hi1">
<xsl:choose>
<xsl:when test="@rend='italic'"><i><xsl:value-of select="."/></i></xsl:when>
<xsl:when test="@rend='bold'"><b><xsl:value-of select="."/></b></xsl:when>
<xsl:when test="@rend='und'"><u><xsl:value-of select="."/></u></xsl:when>
<xsl:when test="@rend='bolditalic'"><b><i><xsl:value-of select="."/></i></b></xsl:when>
<xsl:when test="@rend='sup'"><sup><xsl:value-of select="."/></sup></xsl:when>
<xsl:when test="@rend='supbold'"><sup><b><xsl:value-of select="."/></b></sup></xsl:when>
<xsl:when test="@rend='supund'"><sup><u><xsl:value-of select="."/></u></sup></xsl:when>
<xsl:when test="@rend='strike'"><s><xsl:value-of select="."/></s></xsl:when>
<xsl:when test="@rend='boldund'"><b><u><xsl:value-of select="."/></u></b></xsl:when>
<xsl:when test="@rend='sub'"><sub><xsl:value-of select="."/></sub></xsl:when>
<xsl:when test="@rend='italicsunderlined'"><i><u><xsl:value-of select="."/></u></i></xsl:when>
<xsl:when test="@rend='greek'"><span class="palatino"><xsl:value-of select="."/></span></xsl:when>
<xsl:when test="@rend='greek-und'"><u><span class="palatino"><xsl:value-of select="."/></span></u></xsl:when>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>