Browse Subversion Repository
Contents of /weekley/body/weekley2html.xsl
Parent Directory
| Revision Log
Revision 95 -
( show annotations)
( download)
Sun Feb 10 03:33:49 2013 UTC
(11 years, 1 month ago)
by ohkubo-k
File MIME type: text/plain
File size: 1862 byte(s)
130210 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 |
<head> |
| 7 |
<title>AN ETYMOLOGICAL DICTIONARY OF MODERN ENGLISH</title> |
| 8 |
</head> |
| 9 |
<body> |
| 10 |
<xsl:apply-templates select=".//entryFree" /> |
| 11 |
</body> |
| 12 |
</html> |
| 13 |
</xsl:template> |
| 14 |
<xsl:template match="span"> |
| 15 |
<xsl:choose> |
| 16 |
<!-- rend = italics, smallcaps, sup, sub, underline --> |
| 17 |
<xsl:when test="@style = 'font-style:italic;'"><i><xsl:apply-templates/></i></xsl:when> |
| 18 |
<xsl:when test="@style = 'font-variant:small-caps;'"><xsl:apply-templates/></xsl:when> |
| 19 |
<xsl:otherwise><xsl:apply-templates/></xsl:otherwise> |
| 20 |
</xsl:choose> |
| 21 |
</xsl:template> |
| 22 |
<xsl:template match="foreign"><foreign lang="<xsl:value-of select="@lang"/>"><xsl:apply-templates/></foreign></xsl:template> |
| 23 |
|
| 24 |
<xsl:template match="orth"><dfn><xsl:apply-templates/></dfn></xsl:template> |
| 25 |
|
| 26 |
<xsl:template match="quote"><indent val="2"/><p>&mdash; <xsl:apply-templates/></p><indent val="1"/></xsl:template> |
| 27 |
<xsl:template match="text"><xsl:apply-templates/></xsl:template> |
| 28 |
<xsl:template match="br"><br></xsl:template> |
| 29 |
<xsl:template match="bib">&nbsp;&nbsp;&nbsp;(<xsl:apply-templates/>)</xsl:template> |
| 30 |
<xsl:template match="auth"><xsl:apply-templates/></xsl:template> |
| 31 |
<xsl:template match="title"><I><xsl:apply-templates/></I></xsl:template> |
| 32 |
<xsl:template match="no"><xsl:apply-templates/></xsl:template> |
| 33 |
|
| 34 |
<xsl:template match="sup"><sup><xsl:apply-templates/></sup></xsl:template> |
| 35 |
|
| 36 |
<xsl:template match="entryFree"><dt></dt><dd><p><xsl:apply-templates /></p></dd></xsl:template> |
| 37 |
|
| 38 |
</xsl:stylesheet> |
|