]> Git — Sourcephile - julm/air-duino.git/blob - xsl/year/month.html5.xsl
add html5 link
[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 td.date > a {
25 text-decoration:none;
26 }
27 </style>
28 </head>
29 <body>
30 <table class="graphs">
31 <tbody>
32 <xsl:apply-templates/>
33 </tbody>
34 </table>
35 </body>
36 </html>
37 </xsl:template>
38 <xsl:template match="date">
39 <tr>
40 <td class="date" id="day.{@day}">
41 <a href="#day.{@day}">
42 <xsl:value-of select="ancestor::*/@year"
43 />/<xsl:value-of select="ancestor::*/@month"
44 />/<xsl:value-of select="@day"/>
45 <br/>
46 <xsl:value-of select="@day-name"/>
47 </a>
48 </td>
49 <td class="graphs">
50 <table class="date-graphs">
51 <tbody>
52 <xsl:apply-templates/>
53 </tbody>
54 </table>
55 </td>
56 </tr>
57 </xsl:template>
58 <xsl:template match="sensor">
59 <tr>
60 <td class="graph" id="day.{ancestor::*/@day}.{@name}">
61 <img src="../{@name}/{ancestor::*/@year}/{ancestor::*/@month}/{ancestor::*/@day}.png"/>
62 </td>
63 </tr>
64 </xsl:template>
65 </xsl:transform>