chris_01 a écrit:
Citer:
L'affichage est correct lorsque j'ouvre la base des données avec Graphweather mais, bien que tout les fichiers se trouvent sur le serveur, le graph vent ne s'affiche pas.
Tu as bien modifié le fichier month? et est-il toujours un fichier xsl?
Affirmatif, voici le fichier month.xls :
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes" encoding="ISO-8859-1"/>
<xsl:template match="/">
<xsl:apply-templates select="statistics"/></xsl:template>
<xsl:template match="statistics">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
.stats-title {
background-color: #ddddff;
border: 1px solid #cccccc;
font-size: 150%;
}
.stats-subtitle {
background-color: #ddddff;
border: 1px solid #cccccc;
font-size: 100%;
}
.stats-item {
background-color: #eeeeff;
border: 1px solid #cccccc;
font-size: 100%;
text-align: center;
}
.stats-item-col {
background-color: #eeeeff;
border: 1px solid #cccccc;
font-size: 100%;
text-align: center;
width:200px;
}
.stats-table {
background-color: #ffffdd;
border: 1px dotted #cccccc;
}
.stats-pane {
background-color: #ffffdd;
border: 1px solid #cccccc;
padding: 5px;
text-align: left;
}
.stats-cell {
background-color: #ffffdd;
border: 1px solid #cccccc;
padding: 5px;
text-align: center;
}
.stats-date {
font-style:italic;
font-size:70%;
}
table {
padding:0px;
border:0px;
border-collapse:collapse;
}
</style>
</head>
<body>
<table width="100%" cellspacing="20">
<tr>
<th width="100px" scope="col"><img src="../../statistics.png" width="90" height="90" /></th>
<th width="100%" scope="col"><div class="stats-title">Statistiques <xsl:value-of select="@str-month"/> <xsl:value-of select="@year"/></div></th>
</tr>
</table>
<table width="400" style="text-align:left">
<tr>
<td class="stats-pane" scope="col">
Total des précipitations : <xsl:value-of select="total-rainfall"/><br/>
Nombre de jours pluvieux : <xsl:value-of select="nb-days-of-rainfall"/><br/>
Nombre de jours de gel (<0C) : <xsl:value-of select="nb-days-of-freeze"/><br/>
Nombre de jour de forte chaleur (>30C) : <xsl:value-of select="nb-days-of-heat"/><br/>
Nombre de nuit tropicales (>20C) : <xsl:value-of select="nb-tropical-nights"/>
</td>
</tr>
</table>
<br/>
<table width="100%">
<tr>
<th scope="col" style="padding-right:10px;padding-left:10px;">
<img src="../../temperature.jpg" width="32" height="32" />
</th>
<th width="100%" scope="col">
<div class="stats-subtitle">
Pression - Humidité - Température
</div>
</th>
</tr>
</table>
<table width="100%">
<tr>
<td></td>
<td class="stats-item">Min</td>
<td class="stats-item">Max</td>
<td class="stats-item">Moyenne</td>
<td class="stats-item">Taux max (/h)</td>
</tr>
<tr>
<td class="stats-item-col">Température ext.</td>
<td class="stats-cell"><xsl:value-of select="outdoor_temperature/min"/>
<div class="stats-date"><xsl:value-of select="outdoor_temperature/min-date-text"/></div></td>
<td class="stats-cell"><xsl:value-of select="outdoor_temperature/max"/>
<div class="stats-date"><xsl:value-of select="outdoor_temperature/max-date-text"/></div></td>
<td class="stats-cell"><xsl:value-of select="outdoor_temperature/mean"/></td>
<td class="stats-cell">
<table width="100%" span="2">
<tr>
<td style="text-align: center;"><xsl:value-of select="outdoor_temperature/max-pos-rate"/>
<div class="stats-date"><xsl:value-of select="outdoor_temperature/max-pos-rate-date-text"/></div></td>
<td style="text-align: center;"><xsl:value-of select="outdoor_temperature/max-neg-rate"/>
<div class="stats-date">
<xsl:value-of select="outdoor_temperature/max-neg-rate-date-text"/>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="stats-item-col">Température MINI. et MAXI. sur la période</td>
<td class="stats-cell">
<xsl:value-of select="tn-min"/>
<div class="stats-date">
<xsl:value-of select="tn-min-date-text"/>
</div>
</td>
<td class="stats-cell">
<xsl:value-of select="tx-max"/>
<div class="stats-date">
<xsl:value-of select="tx-max-date-text"/>
</div>
</td>
<td class="stats-cell">-</td>
<td class="stats-cell">-</td>
</tr>
<tr>
<td class="stats-item-col">Pression</td>
<td class="stats-cell"><xsl:value-of select="relative_pressure/min"/>
<div class="stats-date"><xsl:value-of select="relative_pressure/min-date-text"/></div></td>
<td class="stats-cell"><xsl:value-of select="relative_pressure/max"/>
<div class="stats-date"><xsl:value-of select="relative_pressure/max-date-text"/></div></td>
<td class="stats-cell"><xsl:value-of select="relative_pressure/mean"/></td>
<td class="stats-cell">
<table width="100%" span="2">
<tr>
<td style="text-align: center;">
<xsl:value-of select="relative_pressure/max-pos-rate"/>
<div class="stats-date">
<xsl:value-of select="relative_pressure/max-pos-rate-date-text"/>
</div>
</td>
<td style="text-align: center;">
<xsl:value-of select="relative_pressure/max-neg-rate"/>
<div class="stats-date">
<xsl:value-of select="relative_pressure/max-neg-rate-date-text"/>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="stats-item-col">Humidité</td>
<td class="stats-cell"><xsl:value-of select="outdoor_humidity/min"/></td>
<td class="stats-cell"><xsl:value-of select="outdoor_humidity/max"/></td>
<td class="stats-cell"><xsl:value-of select="outdoor_humidity/mean"/></td>
<td class="stats-cell">
<table width="100%" span="2">
<tr>
<td style="text-align: center;">
<xsl:value-of select="outdoor_humidity/max-pos-rate"/>
<div class="stats-date">
<xsl:value-of select="outdoor_humidity/max-pos-rate-date-text"/>
</div>
</td>
<td style="text-align: center;">
<xsl:value-of select="outdoor_humidity/max-neg-rate"/>
<div class="stats-date">
<xsl:value-of select="outdoor_humidity/max-neg-rate-date-text"/>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br/>
<img>
<xsl:attribute name="src">
../<xsl:value-of select="@month"/>/graph-month-1.png
</xsl:attribute>
</img>
<br/>
<br/>
<table width="100%">
<tr>
<th scope="col" style="padding-right:10px;padding-left:10px;">
<img src="../../rainfall.jpg" width="32" height="32" />
</th>
<th width="100%" scope="col">
<div class="stats-subtitle">
Précipitations
</div>
</th>
</tr>
</table>
<table width="100%">
<tr>
<td class="stats-item-col">Total des précipitations </td>
<td class="stats-cell">
<xsl:value-of select="total-rainfall"/>
</td>
</tr>
<tr>
<td class="stats-item-col">Précipitations max sur 1h</td>
<td class="stats-cell">
<xsl:value-of select="rainfall_1h/max"/>
<div class="stats-date">
<xsl:value-of select="rainfall_1h/max-date-text"/>
</div>
</td>
</tr>
<tr>
<td class="stats-item-col">Précipitations max sur 24h</td>
<td class="stats-cell">
<xsl:value-of select="rainfall_24h/max"/>
<div class="stats-date">
<xsl:value-of select="rainfall_24h/max-date-text"/>
</div>
</td>
</tr>
</table>
<br/>
<img>
<xsl:attribute name="src">
../<xsl:value-of select="@month"/>/graph-month-2.png
</xsl:attribute>
</img>
<br/>
<br/>
<table width="100%" >
<tr>
<th scope="col" style="padding-right:10px;padding-left:10px;">
<img src="../../wind.png" width="32" height="32" />
</th>
<th width="100%" scope="col">
<div class="stats-subtitle">
Vent
</div>
</th>
</tr>
</table>
<table width="100%">
<tr>
<td></td>
<td class="stats-item">Max</td>
<td class="stats-item">Moyenne</td>
</tr>
<tr>
<td class="stats-item-col">Vitesse moyenne sur 1 heure (les rafales ne sont pas prise en compte, mais on peut les estimer au double de la vitesse maxi.)</td>
<td class="stats-cell"><xsl:value-of select="wind_speed/max"/>
<div class="stats-date"><xsl:value-of select="wind_speed/max-date-text"/></div></td>
<td class="stats-cell"><xsl:value-of select="wind_speed/mean"/></td>
</tr>
<tr>
<td colspan="3" class="stats-cell" style="text-align:left;">Direction moyenne : <xsl:value-of select="wind_direction/mean"/>
</td>
</tr>
</table>
<img>
<xsl:attribute name="src">
../<xsl:value-of select="@month"/>/graph-month-4.png
</xsl:attribute>
</img>
<br/>
<img>
<xsl:attribute name="src">
../<xsl:value-of select="@month"/>/graph-month-3.png
</xsl:attribute>
</img>
</body>
</html>
</xsl:template>
</xsl:stylesheet>