Skip to main content
summaryrefslogtreecommitdiffstats
blob: cd1a250789d15fd366ee4fb013c787f253be0669 (plain) (blame)
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
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0">
    <xsl:output omit-xml-declaration="yes" />
    <xsl:template match="html">
        <xsl:apply-templates
            select="body/h1"
            mode="banner" />
        <xsl:apply-templates select="body/*" />
    </xsl:template>
    <xsl:template
        match="h1"
        mode="banner">
    </xsl:template>
    <xsl:template match="h1" />
    <xsl:template match="h2">
        <h2 class="bar">
            <xsl:value-of select="." />
        </h2>
    </xsl:template>
    <xsl:template match="ul">
        <ul class="indent">
            <xsl:apply-templates />
        </ul>
    </xsl:template>
    <xsl:template match="*|@*|text()">
        <xsl:copy>
            <xsl:apply-templates select="*|@*|text()" />
        </xsl:copy>
    </xsl:template>
</xsl:stylesheet>

Back to the top