| 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 |
<body> |
| 7 |
<H1>Abbott. <xsl:apply-templates select="TEI.2/teiHeader/fileDesc/sourceDesc/biblStruct/monogr/title"/> [abb]</H1> |
| 8 |
<xsl:apply-templates select=".//div1"/> |
| 9 |
</body> |
| 10 |
</html> |
| 11 |
</xsl:template> |
| 12 |
|
| 13 |
<xsl:template match="div1/head"><H2><xsl:apply-templates/></H2></xsl:template> |
| 14 |
<xsl:template match="div2/head"><H3><xsl:apply-templates/></H3></xsl:template> |
| 15 |
<xsl:template match="div3/head"></xsl:template> |
| 16 |
<xsl:template match="div3"><xsl:choose><xsl:when test="string-length(ancestor::div2/head) != 0"><H4 id="<xsl:value-of select="@id"/>"><xsl:value-of select="substring(@id,4)"/>. <xsl:value-of select="head"/></H4></xsl:when><xsl:when test="string-length(ancestor::div2/head) = 0"><H3 id="<xsl:value-of select="@id"/>"><xsl:value-of select="substring(@id,4)"/>. <xsl:value-of select="head"/></H3></xsl:when></xsl:choose><key type="������" title="abb.<xsl:value-of select="substring(@id,4)"/>">abb.<xsl:value-of select="substring(@id,4)"/></key><xsl:apply-templates/></xsl:template> |
| 17 |
|
| 18 |
<xsl:template match="p"><p><xsl:apply-templates/></p></xsl:template> |
| 19 |
<xsl:template match="emph"><em><xsl:apply-templates/></em></xsl:template> |
| 20 |
<xsl:template match="hi"> |
| 21 |
<xsl:choose> |
| 22 |
<!-- rend = italics, smallcaps, super, sub, underline --> |
| 23 |
<xsl:when test="@rend = 'italics'"><i><xsl:apply-templates/></i></xsl:when> |
| 24 |
<xsl:when test="@rend = 'italic'"><i><xsl:apply-templates/></i></xsl:when> |
| 25 |
<xsl:when test="@rend = 'bold'"><b><xsl:apply-templates/></b></xsl:when> |
| 26 |
<xsl:otherwise><xsl:apply-templates/></xsl:otherwise> |
| 27 |
</xsl:choose> |
| 28 |
</xsl:template> |
| 29 |
<xsl:template match="lb"><br></xsl:template> |
| 30 |
|
| 31 |
<xsl:template match="quote"><i><xsl:apply-templates/></i></xsl:template> |
| 32 |
<xsl:template match="l"><indent val="+1"><p><xsl:apply-templates/></p><indent val="-1"></xsl:template> |
| 33 |
<xsl:template match="bibl"><bibl n="<xsl:value-of select="@n"/>"><xsl:apply-templates/></bibl></xsl:template> |
| 34 |
<xsl:template match="key"><key type="<xsl:value-of select="@type"/>"><xsl:apply-templates/></key></xsl:template> |
| 35 |
|
| 36 |
<xsl:template match="table"><indent val="+1"><table><xsl:apply-templates/></table><indent val="-1"></xsl:template> |
| 37 |
<xsl:template match="row"><tr><xsl:apply-templates/></tr></xsl:template> |
| 38 |
<xsl:template match="cell"><td><xsl:apply-templates/></td></xsl:template> |
| 39 |
<xsl:template match="list"> |
| 40 |
<indent val="+1"><xsl:apply-templates/><indent val="-1"> |
| 41 |
</xsl:template> |
| 42 |
<xsl:template match="item"> |
| 43 |
<p><xsl:apply-templates/></p> |
| 44 |
</xsl:template> |
| 45 |
<xsl:template match="p/note"> |
| 46 |
</p><indent val="+2"><p>[NOTE: <xsl:apply-templates/>]</p><indent val="-2"><p> |
| 47 |
</xsl:template> |
| 48 |
<xsl:template match="div1/note"> |
| 49 |
<indent val="+2"><p>[NOTE: <xsl:apply-templates/>]</p><indent val="-2"> |
| 50 |
</xsl:template> |
| 51 |
|
| 52 |
<xsl:template match="ref"><a href="#<xsl:value-of select="@target"/>"><xsl:apply-templates/></a></xsl:template> |
| 53 |
|
| 54 |
</xsl:stylesheet> |