Browse Subversion Repository
Contents of /shakespeare/schmidt/schmidt2html.xsl
Parent Directory
| Revision Log
Revision 27 -
( show annotations)
( download)
Tue Nov 23 07:14:38 2010 UTC
(13 years, 4 months ago)
by ohkubo-k
File MIME type: text/plain
File size: 1791 byte(s)
update for 2010/11/23 release
| 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 |
<xsl:apply-templates select=".//div1" /> |
| 8 |
</body> |
| 9 |
</html> |
| 10 |
</xsl:template> |
| 11 |
|
| 12 |
<xsl:template match="div1/head/title"></xsl:template> |
| 13 |
<xsl:template match="entryFree/orth"></xsl:template> |
| 14 |
|
| 15 |
<xsl:template match="p"><p><xsl:apply-templates/></p></xsl:template> |
| 16 |
<xsl:template match="quote"><i><xsl:apply-templates/></i></xsl:template> |
| 17 |
<xsl:template match="emph"><i><xsl:apply-templates/></i></xsl:template> |
| 18 |
<xsl:template match="bibl"><bibl n="<xsl:value-of select="@n"/>"><xsl:apply-templates/></bibl></xsl:template> |
| 19 |
|
| 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 = 'sup'"><sup><xsl:apply-templates/></sup></xsl:when> |
| 25 |
<xsl:when test="@rend = 'sub'"><sub><xsl:apply-templates/></sub></xsl:when> |
| 26 |
<xsl:otherwise><xsl:apply-templates/></xsl:otherwise> |
| 27 |
</xsl:choose> |
| 28 |
</xsl:template> |
| 29 |
|
| 30 |
<xsl:template match="entryFree"> |
| 31 |
<dt id="<xsl:value-of select="@key" />"><xsl:value-of select="orth" /><xsl:text></dt><dd></xsl:text> |
| 32 |
<xsl:apply-templates /> |
| 33 |
<xsl:text></dd></xsl:text> |
| 34 |
</xsl:template> |
| 35 |
|
| 36 |
<xsl:template match="div1"> |
| 37 |
<H1><xsl:value-of select="head/title" /></H1> |
| 38 |
<xsl:apply-templates/> |
| 39 |
</xsl:template> |
| 40 |
|
| 41 |
</xsl:stylesheet> |
|