blob: b85ad037a21a85267ff9acca3a275ec3adacb72d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
<?xml version="1.0"?>
<!DOCTYPE stylesheet [
<!ENTITY filter "h:div[@class = 'logo' or @class = 'end']">
]>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:h="http://www.w3.org/1999/xhtml"
exclude-result-prefixes="h">
<xsl:output method="xml"
encoding="iso-8859-1"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
indent="no"/>
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>
<xsl:template match="h:head">
<xsl:copy>
<xsl:text> </xsl:text>
<xsl:copy-of select="h:title"/>
<xsl:text> </xsl:text>
<h:style type="text/css"><![CDATA[
dt
{
margin-top: 2ex;
margin-bottom: 1ex;
font-weight: bolder;
}
]]></h:style>
<xsl:text> </xsl:text>
</xsl:copy>
</xsl:template>
<xsl:template match="&filter; |
text()[preceding-sibling::*[1]/self::&filter;]"/>
</xsl:stylesheet>
|