xhtml2hdoc.xsl 993 Bytes
Newer Older
Jean Vintache's avatar
Jean Vintache committed
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"
qaomia's avatar
qaomia committed
5
    xmlns="http://www.utc.fr/ics/hdoc/xhtml"
qaomia's avatar
fixes    
qaomia committed
6
    version="2.0">
qaomia's avatar
qaomia committed
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
    <xsl:output method="xml" indent="yes"></xsl:output>
    
    <xsl:template match="html">
        <html>
            <head>
                <title><xsl:value-of select="/html/head/title"/></title>
                <meta charset="utf-8"/>
            </head>
            <body>
                <section>
                    <header>
                        <h1>Contenu</h1>
                    </header>
                    <div>
                        <p><xsl:value-of select="/html/body/div"></xsl:value-of></p>
                    </div>
                </section>
            </body>
        </html>
    </xsl:template>
    <xsl:template match="*">
        <xsl:comment>Balise inconnue</xsl:comment>
    </xsl:template>
qaomia's avatar
qaomia committed
30
</xsl:stylesheet>