<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" omit-xml-declaration="np">
	<xsl:output
		indent="yes"
		method="html" 
		encoding="utf-8"
	/>
	<xsl:template match="titre1">
		<h3><xsl:apply-templates/></h3>
	</xsl:template>
	<xsl:template match="titre2">
		<h4><xsl:apply-templates/></h4>
	</xsl:template>

	<xsl:template match="flottant">
		<xsl:choose>
			<xsl:when test="@valeur = 'gauche' or @valeur = 'droite'">
				<xsl:apply-templates/>
			</xsl:when>
		</xsl:choose>
		<h4><xsl:apply-templates/></h4>
	</xsl:template>
	
	<xsl:template match="lien">
		<xsl:choose>
			<xsl:when test="@url">
				<a href="{@url}">
					<xsl:value-of select="."/>
				</a>
			</xsl:when>
			<xsl:otherwise>
				<a href="{@url}">
					<xsl:value-of select="@url"/>
				</a>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>

	<xsl:template match="liste">
		<ul><xsl:apply-templates select="puce"/></ul>
	</xsl:template>
	<xsl:template match="puce">
		<li><xsl:apply-templates/></li>
	</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="souligne">
		<span class="souligne"><xsl:apply-templates/></span>
	</xsl:template>
	<xsl:template match="barre">
		<span class="barre"><xsl:apply-templates/></span>
	</xsl:template>

	<xsl:template match="information">
		<div class="information"><xsl:apply-templates/></div>
	</xsl:template>
	<xsl:template match="question">
		<div class="question"><xsl:apply-templates/></div>
	</xsl:template>
	<xsl:template match="attention">
		<div class="attention"><xsl:apply-templates/></div>
	</xsl:template>
	<xsl:template match="erreur">
		<div class="erreur"><xsl:apply-templates/></div>
	</xsl:template>

	<xsl:template match="couleur">
		<span class="{@nom}"><xsl:apply-templates/></span>
	</xsl:template>
	<xsl:template match="police">
		<span class="{@nom}"><xsl:apply-templates/></span>
	</xsl:template>

	<xsl:template match="code">
		<div class="code">
			Code : <xsl:value-of select="@type"/>
		</div>
		<div class="code2">
			<xsl:value-of select="."/>
		</div>
	</xsl:template>
	<xsl:template match="citation">
		<div class="citation">
			Citation: <xsl:value-of select="@nom"/>
		</div>
		<div class="citation2">
			<xsl:apply-templates/>
		</div>
	</xsl:template>
</xsl:stylesheet>