prepare_wiki_to_hdoc.xsl 679 Bytes
Newer Older
1
2
3
4
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" version="2.0">

5
    <xsl:output method="xml"/>
6
7
8
9
10
11
12
13
14
15
16

    <xsl:template match="node()|@*">
        <xsl:copy>
            <xsl:apply-templates select="node()|@*"/>
        </xsl:copy>
    </xsl:template>
    
    <!-- Scripts are not useful to us -->
    <xsl:template match="script"/>

    <!-- Ignoring divs that are not useful and that might interfere with the true xslt transformation -->
17
    <xsl:template match="/html/body/div/div/div/div[@class!='mw-highlight mw-content-ltr']"/>
18
</xsl:stylesheet>