xhtml2hdoc.xsl 1.13 KB
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
<<<<<<< 0bbcab183e98cc176614025950186e8d2c62bf54
Jean Vintache's avatar
Jean Vintache committed
6
7
    version="2.0">

qaomia's avatar
qaomia committed
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
=======
    xmlns="http://www.utc.fr/ics/hdoc/xhtml"
    
    version="2.0" xpath-default-namespace="http://www.w3.org/1999/xhtml">
    <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>
>>>>>>> xsl xhtml2hdoc added
Jean Vintache's avatar
Jean Vintache committed
36
</xsl:stylesheet>