<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt"
	xmlns:log="http://localhost">
	<xsl:output method="html" media-type="text/html;" />
	<xsl:template match="/">
		<html>
			<head>
				<title>Rapport d'erreur</title>
				<style>
					A:link {text-decoration: underline; color: darkmagenta;}
					A:visited {text-decoration: underline; color: darkmagenta;}
					#f0 { font-family: "Helvetica"; font-size: 10pt;  }
					#f1 { font-family: "SansSerif"; font-size: 12pt; font-weight: bold; color: #FFFFFF;  }
					#f2 { font-family: "SansSerif"; font-size: 9pt;  }
					#f3 { font-family: "SansSerif"; font-size: 9pt; color : red; }
					#f4 { font-family: "SansSerif"; font-size: 8pt; font-style: italic;  }
					#f5 { font-family: "SansSerif"; font-size: 8pt;font-weight: bold; }
				</style>
			</head>
			<body>
				<BASEFONT ID="f0" />
				<DIV>
					<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%">
						<TR BGCOLOR="#008080">
							<TD>
								<DIV>
									<FONT ID="f1">Rapport d'erreur</FONT>
								</DIV>
							</TD>
						</TR>
						<TR BGCOLOR="#FFFFBB">
							<TD>
								<xsl:value-of select="erreur/description" />
							</TD>
						</TR>
					</TABLE>
				</DIV>
				<br />
				<xsl:apply-templates />
			</body>
		</html>
	</xsl:template>
	
	<xsl:template match="erreur">
		<table BGCOLOR="#DCDCDC" borderColor="#009999" cellSpacing="0" cellPadding="0" width="90%" align="center" border="0">
			<tr>
				<td width="220">Code de l'utilsateur : </td>
				<td>
					<xsl:value-of select="@utilisateur"></xsl:value-of>
				</td>
			</tr>
			<tr>
				<td width="220">Site de l'utilisateur : </td>
				<td>
					<xsl:value-of select="@site"></xsl:value-of>
				</td>
			</tr>
			<tr>
				<td width="220">Date de l'erreur : </td>
				<td>
					<xsl:value-of select="@date" />
				</td>
			</tr>
			<tr>
				<td width="220">Heure de l'erreur : </td>
				<td><xsl:value-of select="@heure"/></td>
			</tr>			
		</table>
		<br />
		<xsl:apply-templates />
		
		
	</xsl:template>
	
	<xsl:template match="erreur/environnement">
		<table BGCOLOR="#DCDCDC" borderColor="#009999" cellSpacing="0" cellPadding="0" width="90%" align="center" border="0">
			<tr>
				<td width="220">Nom de la machine : </td>
				<td>
					<xsl:value-of select="@machine"></xsl:value-of>
				</td>
				<td width="220">Identifiant de la machine : </td>
				<td>
					<xsl:value-of select="@machineId"></xsl:value-of>
				</td>

			</tr>
			<tr>
				<td width="220">Version de l'OS : </td>
				<td>
					<xsl:value-of select="@OS"></xsl:value-of>
				</td>
			</tr>
			<tr>
				<td width="220">Version du CLR : </td>
				<td>
					<xsl:value-of select="@CLR" />
				</td>
			</tr>
			<tr>
				<td width="220">Nom de l'utilisateur connecté : </td>
				<td><xsl:value-of select="@userDomainName" />\<xsl:value-of select="@userName" /></td>
			</tr>
			<tr>
				<td width="220" valign="top">Trace d'éxécution : </td>
				<td>
					<xsl:apply-templates select="stackTrace" />
				</td>
			</tr>
		</table>
		<br />
		<table BGCOLOR="#DCDCDC" borderColor="#009999" cellSpacing="0" cellPadding="0" width="90%"
			align="center" border="0">
			<tr>
				<td width="220" valign="top">Message</td>
				<td>
					<xsl:apply-templates select="message" />
				</td>
			</tr>
			<tr>
				<td width="220" valign="top">Message Etendue</td>
				<td>
					<textarea rows="5" cols="100" readonly="true">
						<xsl:apply-templates select="messageEtendue" />
					</textarea>
				</td>
			</tr>
		</table>
		
		<table BGCOLOR="#DCDCDC" borderColor="#009999" cellSpacing="0" cellPadding="0" width="90%" align="center" border="0">
					
			<tr>
				<td valign="top">Capture</td>
				<td><a href="capture.jpg" target="_blank"><IMG height="768" alt="" src="capture_m.jpg" id="IMG1" width="1024"/></a></td>
			</tr>
		</table>
		<br/>
	</xsl:template>
	
	<xsl:template match="stackTrace">
		<textarea rows="10" cols="100" readonly="true">
			<xsl:value-of select="."></xsl:value-of>
		</textarea>
	</xsl:template>
	
	<xsl:template match="message">
		<xsl:value-of select="."></xsl:value-of>		
	</xsl:template>
	
	<xsl:template match="messageEtendue">		
		<xsl:value-of select="."></xsl:value-of>		
	</xsl:template>
		
	<xsl:template match="erreur/description"></xsl:template>
</xsl:stylesheet>
