-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathresmon.xsl
55 lines (50 loc) · 1.67 KB
/
resmon.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="ResmonResults">
<html>
<head>
<title>Resmon Results</title>
<link rel="stylesheet" type="text/css" href="resmon.css" />
</head>
<body>
<p>
Total checks:
<xsl:value-of select="count(ResmonResult)" />
</p>
<xsl:for-each select="ResmonResult">
<xsl:sort select="@module" />
<xsl:sort select="@service" />
<div class="item">
<div class="info">
Last check: <xsl:value-of select="last_runtime_seconds" />
/
Last updated: <xsl:value-of select="last_update" />
</div>
<h1>
<a>
<xsl:attribute name="href">
/<xsl:value-of select="@module" />
</xsl:attribute>
<xsl:value-of select="@module" />
</a>`<a>
<xsl:attribute name="href">
/<xsl:value-of select="@module"
/>/<xsl:value-of select="@service" />
</xsl:attribute>
<xsl:value-of select="@service" />
</a>
</h1>
<ul>
<xsl:for-each select="metric">
<xsl:sort select="@name" />
<li><xsl:value-of select="@name" /> =
<xsl:value-of select="." /></li>
</xsl:for-each>
</ul>
</div>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>