69 lines
1.5 KiB
XML
69 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<xsl:stylesheet version="1.0"
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
xmlns:rss="http://purl.org/rss/1.0/"
|
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
xmlns:date="http://exslt.org/dates-and-times"
|
|
xmlns:str="http://exslt.org/strings"
|
|
exclude-result-prefixes="xsl rss rdf date str">
|
|
|
|
<!-- TODO: Move non-HTML-entities into separate files. -->
|
|
|
|
<xsl:template match="pre">
|
|
<pre><xsl:apply-templates/></pre>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="p">
|
|
<xsl:if test="@title">
|
|
<h3>
|
|
<xsl:value-of select="@title"/>
|
|
</h3>
|
|
</xsl:if>
|
|
<p class="{@class}">
|
|
<xsl:apply-templates/>
|
|
</p>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="dl">
|
|
<dl class="{@class}">
|
|
<xsl:apply-templates/>
|
|
</dl>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="dh">
|
|
<dt class="main"><xsl:apply-templates/></dt>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="dt">
|
|
<dt><xsl:apply-templates/></dt>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="dd">
|
|
<dd><xsl:apply-templates/></dd>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="ul">
|
|
<ul><xsl:apply-templates/></ul>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="ol">
|
|
<ol><xsl:apply-templates/></ol>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="li">
|
|
<li><xsl:apply-templates/></li>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="em">
|
|
<em>
|
|
<xsl:apply-templates/>
|
|
</em>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="strong">
|
|
<strong>
|
|
<xsl:apply-templates/>
|
|
</strong>
|
|
</xsl:template>
|
|
</xsl:stylesheet>
|