<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output indent="no" />
	<xsl:template match="/">
		<html>
			<head>
				<title>
					Une superbe page XML + XSL
				</title>
			</head>
			<body style="background:#E8F0F4 url(bg.png) repeat-x top; font-family:Arial, Helvetica, sans-serif; font-size: 0.8em;">
				<div style="border: #999999 1px solid; margin: 10px; padding: 10px; background-color: #F4F9FD;">
					<xsl:apply-templates/>
				</div>
			</body>
		</html>
	</xsl:template>
	<xsl:template match="titre1">
		<h1 style="color:#333366;margin:0px">
			<xsl:apply-templates/>
		</h1>
	</xsl:template>
	<xsl:template match="titre2">
		<h2 style="color:#333366;margin:0px">
			<xsl:apply-templates/>
		</h2>
	</xsl:template>
	<xsl:template match="paragraphe">
		<p>
			<xsl:apply-templates/>
		</p>
	</xsl:template>
	<xsl:template match="gras">
		<strong>
			<xsl:apply-templates/>
		</strong>
	</xsl:template>
	<xsl:template match="italique">
		<em>
			<xsl:apply-templates/>
		</em>
	</xsl:template>
	<xsl:template match="couleur">
		<xsl:element name="span">
			<xsl:attribute name="style">
				color:<xsl:value-of select="@nom"/>;
			</xsl:attribute>
			<xsl:apply-templates/>
		</xsl:element>
	</xsl:template>
	<xsl:template match="ligne">
		<br/>
	</xsl:template>
	<xsl:template match="liste">
		<ul>
			<xsl:for-each select="puce">
				<li><xsl:apply-templates/></li>
			</xsl:for-each>
		</ul>
	</xsl:template>
</xsl:stylesheet>
