<xsl:stylesheet
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  version="1.0"
  xmlns:xt="http://www.jclark.com/xt">


<xsl:output method="html"  
 doctype-public="-//W3C//DTD HTML 4.0 Transitional//EN"/>

<xsl:template match="head">
<center><h3> 
  <xsl:apply-templates/>
</h3></center>
</xsl:template>

<xsl:template match="text">
<html><head><title>Converted by Simple.xsl</title></head>
<body>
  <xsl:apply-templates/>
</body></html>
</xsl:template>


<xsl:template match="list">
<xsl:choose>
 <xsl:when test="@type='gloss'">
  <table><xsl:apply-templates mode="gloss" select="item"/></table>
 </xsl:when>
 <xsl:when test="@type='unordered'">
  <ul><xsl:apply-templates/></ul>
 </xsl:when>
 <xsl:when test="@type='ordered'">
  <ol><xsl:apply-templates/></ol>
 </xsl:when>
 <xsl:otherwise>
  <ul><xsl:apply-templates/></ul>
 </xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template mode="gloss" match="item">
 <tr>
   <td valign="top"><strong>
     <xsl:apply-templates mode="print" select="preceding-sibling::*[1]"/></strong></td>
   <td><xsl:apply-templates/></td>
 </tr>
</xsl:template>

<xsl:template match="list/label"/>

<xsl:template match="item">
 <li><xsl:apply-templates/></li>
</xsl:template>

<xsl:template match="p">
 <p><xsl:apply-templates/></p>
</xsl:template>

<xsl:template match="label" mode="print">
 <xsl:apply-templates/>
</xsl:template>


</xsl:stylesheet>





