1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 |
<!-- |
3 |
Feeping Creaturism |
4 |
|
5 |
Douglas Thrift |
6 |
|
7 |
$Id$ |
8 |
--> |
9 |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
10 |
xmlns:xhtml="http://www.w3.org/1999/xhtml" exclude-result-prefixes="xhtml"> |
11 |
<xsl:output encoding="UTF-8"/> |
12 |
<xsl:template match="xhtml:html"> |
13 |
<jargon> |
14 |
<xsl:apply-templates select="xhtml:head/xhtml:title"/> |
15 |
<xsl:apply-templates select="xhtml:body/xhtml:dt/dt/xhtml:span"/> |
16 |
<xsl:apply-templates select="xhtml:body/xhtml:dd"/> |
17 |
</jargon> |
18 |
</xsl:template> |
19 |
<xsl:template match="xhtml:title"> |
20 |
<word><xsl:apply-templates/></word> |
21 |
</xsl:template> |
22 |
<xsl:template match="xhtml:span"> |
23 |
<xsl:choose> |
24 |
<xsl:when test="@class='pronunciation'"> |
25 |
<pronunciation><xsl:apply-templates/></pronunciation> |
26 |
</xsl:when> |
27 |
<xsl:when test="@class='grammar'"> |
28 |
<grammar><xsl:apply-templates/></grammar> |
29 |
</xsl:when> |
30 |
</xsl:choose> |
31 |
</xsl:template> |
32 |
<xsl:template match="xhtml:dd"> |
33 |
<definition><xsl:copy-of select="*"/></definition> |
34 |
</xsl:template> |
35 |
</xsl:stylesheet> |