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" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output
method="html"
encoding="UTF-8"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
indent="yes"/>
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<xsl:element name="meta">
<xsl:attribute name="http-equiv">
<xsl:value-of select="html/head/meta[@http-equiv]/@http-equiv"/>
</xsl:attribute>
<xsl:attribute name="content">
<xsl:value-of select="html/head/meta[@content]/@content"/>
</xsl:attribute>
</xsl:element>
<title><xsl:apply-templates mode="msz"/></title>
</head>
<body>
<p>TOTOTTOOTOTOTTO</p>
</body>
</html>
</xsl:template>
<xsl:template match="title" mode="msz">
<xsl:value-of select="html/head/title"/>
</xsl:template>
</xsl:stylesheet> |
Partager