]> Git — Sourcephile - julm/air-duino.git/blob - xsl/sensor/year/month.html5.xsl
add RTC support
[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 <title><xsl:value-of select="@sensor"/> <xsl:value-of select="@year"/>/<xsl:value-of select="@month"/></title>
10 <meta name="generator">
11 <xsl:text>tool/air/sensor/xsl/year/month.html5.xsl</xsl:text>
12 <xsl:text>, </xsl:text>
13 <xsl:value-of select="
14 concat('XSL processor: ',system-property('xsl:vendor')
15 ,' &lt;',system-property('xsl:vendor-url'),'&gt;')"/>
16 </meta>
17 <style type="text/css" rel="stylesheet">
18 td.date {
19 font-family:monospace;
20 font-weight:bold;
21 text-align:center;
22 vertical-align:middle;
23 }
24 </style>
25 </head>
26 <body>
27 <table class="graphs">
28 <tbody>
29 <xsl:apply-templates/>
30 </tbody>
31 </table>
32 </body>
33 </html>
34 </xsl:template>
35 <xsl:template match="date">
36 <tr>
37 <td class="date" id="day.{@day}">
38 <xsl:value-of select="ancestor::*/@year"
39 />/<xsl:value-of select="ancestor::*/@month"
40 />/<xsl:value-of select="@day"/>
41 <br/>
42 <xsl:value-of select="@day-name"/>
43 </td>
44 <td class="graph">
45 <img src="{ancestor::*/@month}/{@day}.png"/>
46 </td>
47 </tr>
48 </xsl:template>
49 </xsl:transform>