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:param name="refresh-interval" select="'60'"/>
7 <xsl:template match="report">
10 <title>Air <xsl:value-of select="@year"/>/<xsl:value-of select="@month"/></title>
11 <meta name="generator">
12 <xsl:text>tool/air/xsl/year/month.html5.xsl</xsl:text>
13 <xsl:text>, </xsl:text>
14 <xsl:value-of select="
15 concat('XSL processor: ',system-property('xsl:vendor')
16 ,' <',system-property('xsl:vendor-url'),'>')"/>
18 <style type="text/css" rel="stylesheet">
20 font-family:monospace;
29 <script type="application/javascript">
31 PageRefresh.interval = <xsl:value-of select="$refresh-interval"/>;
32 PageRefresh.refresh = function() {
33 window.setTimeout(function(){
34 window.location.reload(true);
35 setTimeout(arguments.callee, PageRefresh.interval * 1000);
36 }, PageRefresh.interval * 1000);
40 <body onload="PageRefresh.refresh()">
41 <table class="graphs">
43 <xsl:apply-templates/>
49 <xsl:template match="date">
51 <td class="date" id="day.{@day}">
52 <a href="#day.{@day}">
53 <xsl:value-of select="ancestor::*/@year"
54 />/<xsl:value-of select="ancestor::*/@month"
55 />/<xsl:value-of select="@day"/>
57 <xsl:value-of select="@day-name"/>
61 <table class="date-graphs">
63 <xsl:apply-templates/>
69 <xsl:template match="sensor">
71 <td class="graph" id="day.{ancestor::*/@day}.{@name}">
72 <img src="../{@name}/{ancestor::*/@year}/{ancestor::*/@month}/{ancestor::*/@day}.png"/>