| 1 |
<?xml version="1.0" encoding="utf-8" ?> |
| 2 |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
| 3 |
|
| 4 |
<xsl:template match="/"> |
| 5 |
<html> |
| 6 |
<head> |
| 7 |
<title><xsl:apply-templates select="TEI.2/teiHeader/fileDesc/sourceDesc/biblStruct/monogr/title" /></title> |
| 8 |
</head> |
| 9 |
<body> |
| 10 |
<xsl:apply-templates select=".//div0" /> |
| 11 |
</body> |
| 12 |
</html> |
| 13 |
</xsl:template> |
| 14 |
<xsl:template match="head"><H1><xsl:apply-templates/></H1></xsl:template> |
| 15 |
<xsl:template match="etym">[<xsl:apply-templates/>]</xsl:template> |
| 16 |
<xsl:template match="sense"><p><b><xsl:value-of select="@n"/></b><xsl:apply-templates/></p></xsl:template> |
| 17 |
<xsl:template match="sense"> |
| 18 |
<xsl:choose> |
| 19 |
<xsl:when test="@level = 0"><indent val="1"><p><b><xsl:value-of select="@n"/></b><xsl:apply-templates/></p></xsl:when> |
| 20 |
<xsl:when test="@level = 1"><indent val="1"><p><b><xsl:value-of select="@n"/></b><xsl:apply-templates/></p></xsl:when> |
| 21 |
<xsl:when test="@level = 2"><indent val="2"><p><b><xsl:value-of select="@n"/></b><xsl:apply-templates/></p></xsl:when> |
| 22 |
<xsl:when test="@level = 3"><indent val="3"><p><b><xsl:value-of select="@n"/></b><xsl:apply-templates/></p></xsl:when> |
| 23 |
<xsl:when test="@level = 4"><indent val="4"><p><b><xsl:value-of select="@n"/></b><xsl:apply-templates/></p></xsl:when> |
| 24 |
<xsl:otherwise><indent val="4"><p><b><xsl:value-of select="@n"/></b><xsl:apply-templates/></p></xsl:otherwise> |
| 25 |
</xsl:choose> |
| 26 |
</xsl:template> |
| 27 |
<xsl:template match="emph"><em><xsl:apply-templates/></em></xsl:template> |
| 28 |
<xsl:template match="b"><b><xsl:apply-templates/></b></xsl:template> |
| 29 |
<xsl:template match="orth"><xsl:text><b></xsl:text><xsl:apply-templates/><xsl:text></b></xsl:text></xsl:template> |
| 30 |
<xsl:template match="gen"><xsl:text><i></xsl:text><xsl:apply-templates/><xsl:text></i></xsl:text></xsl:template> |
| 31 |
<xsl:template match="tr"><xsl:text><i></xsl:text><xsl:apply-templates/><xsl:text></i></xsl:text></xsl:template> |
| 32 |
<xsl:template match="hi"><xsl:text><i></xsl:text><xsl:apply-templates/><xsl:text></i></xsl:text></xsl:template> |
| 33 |
<xsl:template match="dfn"><dfn id="<xsl:value-of select="@id"/>"><xsl:apply-templates/></dfn></xsl:template> |
| 34 |
<xsl:template match="key"><key type="<xsl:value-of select="@type"/>"><xsl:apply-templates/></key></xsl:template> |
| 35 |
<xsl:template match="entryFree"> |
| 36 |
<xsl:text> |
| 37 |
<dt id="</xsl:text><xsl:value-of select="@key" /><xsl:text>"></xsl:text><xsl:value-of select="orth" /><xsl:text></dt><dd></xsl:text> |
| 38 |
<xsl:apply-templates /> |
| 39 |
<xsl:text></dd> |
| 40 |
</xsl:text> |
| 41 |
</xsl:template> |
| 42 |
<xsl:template match="div0"> |
| 43 |
<xsl:apply-templates /> |
| 44 |
</xsl:template> |
| 45 |
</xsl:stylesheet> |