]> Git — Sourcephile - julm/air-duino.git/blob - xsl/year/month.html5.xsl
harden collect.pl parsing
[julm/air-duino.git] / xsl / 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>Air <xsl:value-of select="@year"/>/<xsl:value-of select="@month"/></title>
10 <meta name="generator">
11 <xsl:text>tool/air/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:top;
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="graphs">
45 <table class="date-graphs">
46 <tbody>
47 <xsl:apply-templates/>
48 </tbody>
49 </table>
50 </td>
51 </tr>
52 </xsl:template>
53 <xsl:template match="sensor">
54 <tr>
55 <td class="graph" id="day.{ancestor::*/@day}.{@name}">
56 <img src="../{@name}/{ancestor::*/@year}/{ancestor::*/@month}/{ancestor::*/@day}.png"/>
57 </td>
58 </tr>
59 </xsl:template>
60 </xsl:transform>