]> Git — Sourcephile - julm/air-duino.git/blob - xsl/sensor/year/month.html5.xsl
fix collect.pl when Unkown values, better .png rules, and add .html5
[julm/air-duino.git] / xsl / sensor / year / month.html5.xsl
1 <?xml version='1.0'?>
2 <xsl:transform version='1.0'
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4 <xsl:output doctype-system="about:legacy-compat"
5 encoding="UTF-8" indent="yes" method="html"/>
6 <xsl:template match="report">
7 <html>
8 <head>
9 <style type="text/css" rel="stylesheet">
10 td.date {
11 font-family:monospace;
12 font-weight:bold;
13 text-align:center;
14 vertical-align:middle;
15 }
16 </style>
17 </head>
18 <body>
19 <table class="graphs">
20 <tbody>
21 <xsl:apply-templates/>
22 </tbody>
23 </table>
24 </body>
25 </html>
26 </xsl:template>
27 <xsl:template match="date">
28 <tr>
29 <td class="date">
30 <xsl:value-of select="ancestor::*/@year"
31 />/<xsl:value-of select="ancestor::*/@month"
32 />/<xsl:value-of select="@day"/>
33 <br/>
34 <xsl:value-of select="@day-name"/>
35 </td>
36 <td class="graph">
37 <img src="{ancestor::*/@month}/{@day}.png"/>
38 </td>
39 </tr>
40 </xsl:template>
41 </xsl:transform>