﻿<xsl:stylesheet
	version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">
<html>
<head>
<title>Message téléphonique pour <xsl:value-of select="//pour" /></title>
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
</head>
<body style="
background-image:url(message-tel-blanc.jpg);
background-repeat:no-repeat;
font-size:9pt;">
<p style="margin-top:28pt;">
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
<xsl:value-of select="//date_AAAA-MM-JJ" />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
<xsl:value-of select="translate(//heure_HH.MM, '.', ':')" />
</p><p>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;
<xsl:value-of select="//pour" />
</p><p style="margin-top:30pt;">
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
<xsl:value-of select="//nom" />
</p><p style="margin-top:10pt;">
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
<xsl:value-of select="//no-téléphone" />
</p><p style="margin-top:7pt;">
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;&#160;
<xsl:choose>
	<xsl:when test="//a-appelé">X</xsl:when>
	<xsl:otherwise>&#160;&#160;&#160;</xsl:otherwise>
</xsl:choose>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
&#160;&#160;&#160;
<xsl:choose>
	<xsl:when test="//svp-rappeler">X</xsl:when>
	<xsl:otherwise>&#160;&#160;&#160;</xsl:otherwise>
</xsl:choose>
</p><p style="margin-bottom:0pt;">
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;&#160;
<xsl:choose>
	<xsl:when test="//a-appelé-pour-vous-voir">X</xsl:when>
	<xsl:otherwise>&#160;&#160;&#160;</xsl:otherwise>
</xsl:choose>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
&#160;&#160;&#160;
<xsl:choose>
	<xsl:when test="//rappellera">X</xsl:when>
	<xsl:otherwise>&#160;&#160;&#160;</xsl:otherwise>
</xsl:choose>
</p><p style="margin-top:5pt;">
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;&#160;
<xsl:choose>
	<xsl:when test="//veut-vous-voir">X</xsl:when>
	<xsl:otherwise>&#160;&#160;&#160;</xsl:otherwise>
</xsl:choose>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
&#160;&#160;&#160;
<xsl:choose>
	<xsl:when test="//retournait-votre-appel">X</xsl:when>
	<xsl:otherwise>&#160;&#160;&#160;</xsl:otherwise>
</xsl:choose>
</p>
<xsl:apply-templates select="//paragraphe" />
<p style="position: absolute;
	left: 6em;
	top: 28em;">
<xsl:value-of select="//message-pris-par" />
</p>
<p style="position: absolute;
	left: 21em;
	top: 28em;">
	<xsl:if test="//urgent">X</xsl:if>
</p>
</body>
</html>
</xsl:template>

<xsl:template match="paragraphe[1]">
<p style="margin-top:-0.25em; margin-left:1em;
          width:20em; text-indent:4em; line-height:2em;">
<xsl:apply-templates />
</p>
</xsl:template>

<xsl:template match="paragraphe">
<p style="margin-top:-1em; margin-left:1em;
          width:20em; line-height:2em;">
<xsl:apply-templates />
</p>
</xsl:template>

<xsl:template match="em">
<em><xsl:value-of select="." /></em>
</xsl:template>

</xsl:stylesheet>
