<?xml version="1.0" encoding="iso-8859-1"?><!-- DWXMLSource="fragment.xml" -->
<!DOCTYPE xsl:stylesheet  [
	<!ENTITY nbsp   "&#160;">
	<!ENTITY copy   "&#169;">
	<!ENTITY reg    "&#174;">
	<!ENTITY trade  "&#8482;">
	<!ENTITY mdash  "&#8212;">
	<!ENTITY ldquo  "&#8220;">
	<!ENTITY rdquo  "&#8221;"> 
	<!ENTITY pound  "&#163;">
	<!ENTITY yen    "&#165;">
	<!ENTITY euro   "&#8364;">
	<!ENTITY Amacron "&#256;">
	<!ENTITY Emacron "&#274;">
	<!ENTITY Imacron "&#298;">
	<!ENTITY Omacron "&#332;">
	<!ENTITY Umacron "&#362;">
	<!ENTITY Ymacron "&#562;">
	<!ENTITY AEmacron "&#508;">
	<!ENTITY amacron "&#257;">
	<!ENTITY emacron "&#275;">
	<!ENTITY imacron "&#299;">
	<!ENTITY omacron "&#333;">
	<!ENTITY umacron "&#363;">
	<!ENTITY ymacron "&#563;">
	<!ENTITY aemacron "&#509;">
	<!ENTITY Thorn "&#222;">
	<!ENTITY thorn "&#254;">
	<!ENTITY Eth "&#208;">
	<!ENTITY eth "&#240;">
	<!ENTITY Aesc "&#198;">
	<!ENTITY aesc "&#230;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="iso-8859-1" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
<xsl:key name="list" match="word" use="@hw"/>
<xsl:key name="lineno" match="word" use="@id"/>

<xsl:template name="processnoun1">
<em><xsl:value-of select="ancestor::word/child::grammar/gender"/></em>
<xsl:text>. </xsl:text>
</xsl:template>

<xsl:template name="processnoun2">
<em><xsl:value-of select="self::node()/child::grammar/case"/></em>
<xsl:text>. </xsl:text>
<xsl:choose>
<xsl:when test="self::node()/attribute::type='proper'">
<xsl:text> </xsl:text>
</xsl:when>
<xsl:otherwise>
<em><xsl:value-of select="self::node()/child::grammar/number"/></em>
<xsl:text>. </xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template name="processadjective1">
<xsl:text>. </xsl:text>
</xsl:template>

<xsl:template name="processadjective2">
<em><xsl:value-of select="self::node()/child::grammar/gender"/></em>
<xsl:text>. </xsl:text>
<em><xsl:value-of select="self::node()/child::grammar/case"/></em>
<xsl:text>. </xsl:text>
<em><xsl:value-of select="self::node()/child::grammar/number"/></em>
<xsl:text>. </xsl:text>
</xsl:template>

<xsl:template name="processverb1">
<em><xsl:value-of select="ancestor::word/child::grammar/strength"/></em>
<xsl:text>. </xsl:text>
</xsl:template>

<xsl:template name="processverb2">
<em><xsl:value-of select="self::node()/child::grammar/tense"/></em>
<xsl:text>. </xsl:text>
<em><xsl:value-of select="self::node()/child::grammar/number"/></em>
<xsl:text>. </xsl:text>

</xsl:template>

<xsl:template name="processother">
</xsl:template>

<xsl:template name="header">
<xsl:for-each select="key('list', .)">
<xsl:sort/>
<xsl:call-template name="footer"/>
<xsl:if test="ancestor::word/attribute::pos='noun'">
<xsl:call-template name="processnoun2"/>
</xsl:if>
</xsl:for-each>
</xsl:template>

<xsl:template name="footer">
<xsl:call-template name="wordform"/>
<xsl:text> </xsl:text>
<xsl:call-template name="linenumber"/>
<xsl:text>. </xsl:text>
</xsl:template>

<xsl:template name="wordform" match="word">
<xsl:value-of select="item"/>
</xsl:template>

<xsl:template name="linenumber" match="item">
<xsl:value-of select="ancestor::line/attribute::id"/>
</xsl:template>


<xsl:template match="poem">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- DW6 -->
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<!-- TemplateBeginEditable name="doctitle" -->
<title>ASC Poems Project</title>
<!-- TemplateEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />
<link rel="stylesheet" href="stylesheets/mapstylesheet.css" type="text/css" />

<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
<style type="text/css">
<xsl:comment>
/* Global Styles */

body {
	margin:0px;
	}
	
td {
	font:11px Arial, Helvetica, sans-serif;
	color:#666666;
	}
	
a {
	color: #993300;
	text-decoration: none;
	}

a:hover {
	color: #5C743D;
	text-decoration: underline;
	}

/* ID Styles */

#navigation td {
	border-bottom: 1px solid #F4FFE4;
	}
	
#navigation a {
	font: bold 11px Arial, Helvetica, sans-serif;
	color: #D5EDB3;
	line-height:16px;
	letter-spacing:.1em;
	text-decoration: none;
	display:block;
	padding:8px 6px 10px 20px;
	}
	
#navigation a:hover {
	background: #99CC66;
	color:#993300;
	}
	
#logo 	{
	font:18px Arial, Helvetica, sans-serif;
	color: #5C743D;
	letter-spacing:.2em;
	line-height:30px;
	}

#tagline 	{	
	font:11px Arial, Helvetica, sans-serif;
	color: #993300;
	letter-spacing:.4em;
	line-height:18px;
	}

#monthformat {
	border-bottom: 1px dashed #5C743D;
	}
		
#dateformat {
	font:11px Arial, Helvetica, sans-serif;
	color: #993300;
	letter-spacing:.2em;
	}
	
#dateformat a {
	font:11px Arial, Helvetica, sans-serif;
	color: #993300;
	font-weight:bold;
	letter-spacing:.1em;
	text-decoration:none;
	}
	
#dateformat a:hover {
	color: #F4FFE4;
	letter-spacing:.1em;
	}
	
/* Class Styles */
	
.bodyText {
	font:11px Arial, Helvetica, sans-serif;
	color:#666666;
	line-height:20px;
	margin-top:0px;
	}
	
.pageName{
	font: 18px Arial, Helvetica, sans-serif;
	color: #99CC66;
	line-height:26px;
	letter-spacing:.21em;
	}
	
.subHeader {
	font:bold 11px Arial, Helvetica, sans-serif;
	color: #993300;
	line-height:22px;
	letter-spacing:.2em;
	}

.quote {
	font: 20px Arial, Helvetica, sans-serif;
	color: #759DA1;
	line-height:30px;
	}
	
.smallText {
	font: 10px Arial, Helvetica, sans-serif;
	color: #666666;
	line-height: 22px;
	}
	
.navText {
	font: 11px Arial, Helvetica, sans-serif;
	color: #003366;
	line-height:16px;
	letter-spacing:.1em;
	text-decoration: none;
	}
</xsl:comment>
</style>
</head>
<body bgcolor="#F4FFE4">
<table width="760"  border="0" cellspacing="0" cellpadding="0">
  <tr bgcolor="#D5EDB3">
    <td colspan="3"  valign="bottom" align="center" nowrap="nowrap" id="logo">      <br />
      The <em>Anglo-Saxon
        Chronicle</em> Poems Project </td>
  </tr>
  <tr bgcolor="#D5EDB3">
    <td colspan="3"  valign="top" align="center" nowrap="nowrap" id="tagline">DRAFT SITE</td>
  </tr>
  <tr>
    <td colspan="3" bgcolor="#5C743D"><img src="images/mm_spacer.gif" alt="" width="1" height="2" border="0" /></td>
  </tr>
  <tr>
    <td colspan="3" bgcolor="#99CC66" background="images/mm_dashed_line.gif"><img src="images/mm_dashed_line.gif" alt="line decor" width="4" height="3" border="0" /></td>
  </tr>
  <tr bgcolor="#99CC66">
    <td colspan="3" id="dateformat" height="20">&nbsp;&nbsp;
<!--        <script language="JavaScript" type="text/javascript">
<xsl:text disable-output-escaping="yes">
<![CDATA[
      document.write(TODAY);	]]>
</xsl:text>
</script> -->
   </td>
  </tr>
  <tr>

    <td colspan="3" bgcolor="#99CC66" background="images/mm_dashed_line.gif"><img src="images/mm_dashed_line.gif" alt="line decor" width="4" height="3" border="0" /></td>
  </tr>
  <tr>
    <td colspan="3" bgcolor="#5C743D"><img src="images/mm_spacer.gif" alt="" width="1" height="2" border="0" /></td>
  </tr>
  <tr>
    <td width="165" valign="top"  bgcolor="#5C743D">
	<!-- TemplateBeginEditable name="Navigation" --><table border="0" cellspacing="0" cellpadding="0" width="165" id="navigation">
      <tr>
        <td width="165">&nbsp;<br />
          &nbsp;<br /></td>
      </tr>
      <tr>
        <td width="165"><a href="index.html" class="navText">Home </a></td>
      </tr>
      <tr>
        <td width="165"><a href="xmlcode.html" class="navText">XML
            Code </a></td>
      </tr>
      <tr>
        <td width="165"><a href="nolink.html" class="navText">Diplomatic
            Edition </a></td>
      </tr>
      <tr>
        <td width="165"><a href="xmlmaintext.xml" class="navText">Edited
            Text </a></td>
      </tr>
      <tr>
        <td width="165"><a href="fragment.xml" class="navText">Glossary</a></td>
      </tr>
      <tr> </tr>
      <tr>
        <td width="165"><a href="nolink.html" class="navText">Editorial
            History </a></td>
      </tr>
      <tr>
        <td width="165"><a href="nolink.html" class="navText">Bibliography</a></td>
      </tr>
      <tr>
        <td width="165"><a href="notes.html" class="navText">Development Notes</a></td>
      </tr>	  
      <tr>
        <td width="165"><a href="acknowledgements.html" class="navText">Acknowledgements</a></td>
      </tr>
    </table>
	  <br />
      &nbsp;<br />
      &nbsp;<br /><!-- TemplateEndEditable --></td>
    <td width="25">&nbsp;</td>
    <td width="545" valign="top"><table border="0" cellspacing="0" cellpadding="0" width="100%">
      <tr>
        <td class="pageName"><!-- TemplateBeginEditable name="Title" -->
          <div align="center">GLOSSARY</div>
        <!-- TemplateEndEditable --></td>
      </tr>

      <tr>
        <td class="bodyText"><!-- TemplateBeginEditable name="Main Content" -->
         <center>See the <a href="notes.html">Development Notes Page</a> for an explanation of the contents on this page.</center>
<xsl:for-each select="/poem/line/word[generate-id(.)=generate-id(key('list', @hw))]/@hw">
<xsl:sort/>
<p>
<b><xsl:value-of select="."/></b>
<xsl:text>. </xsl:text>
<em><xsl:value-of select="ancestor::word/attribute::pos"/></em>
<xsl:choose>
<xsl:when test="ancestor::word/attribute::pos='noun'">
<xsl:text> </xsl:text>
<xsl:call-template name="processnoun1"/>
</xsl:when>
<xsl:when test="ancestor::word/attribute::pos='adjective'">
<xsl:call-template name="processadjective1"/>
</xsl:when>
<xsl:when test="ancestor::word/attribute::pos='verb'">
<xsl:text> </xsl:text>
<xsl:call-template name="processverb1"/>
</xsl:when>
<xsl:otherwise>
<xsl:text> </xsl:text>
<xsl:call-template name="processother"/>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="ancestor::word/child::def"/>
<xsl:text>. </xsl:text>
<xsl:for-each select="key('list', .)">
<xsl:sort/>

<xsl:choose>
<xsl:when test="self::node()/attribute::pos='noun'">
<xsl:call-template name="processnoun2"/>
</xsl:when>
<xsl:when test="self::node()/attribute::pos='adjective'">
<xsl:call-template name="processadjective2"/>
</xsl:when>
<xsl:when test="self::node()/attribute::pos='verb'">
<xsl:call-template name="processverb2"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="processother"/>
</xsl:otherwise>
</xsl:choose>


<xsl:call-template name="wordform"/>
<xsl:text> </xsl:text>
<xsl:call-template name="linenumber"/>
<xsl:text>. </xsl:text>
</xsl:for-each>
</p>
</xsl:for-each> 
		 
        <!-- TemplateEndEditable --></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td colspan="3">&nbsp;</td>
  </tr>
  <tr>
    <td width="165">&nbsp;</td>
    <td width="25">&nbsp;</td>
    <td width="545"><table width="225" border="0" align="center">
      <tr>
        <td>&copy; 2006 Scott Kleinman.<br />
          Last Updated:
          <!-- #BeginDate format:Sw1 -->30 May, 2006<!-- #EndDate --></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
</xsl:template>

</xsl:stylesheet>
