/usr/share/doc/crossroads/examples/status.xslt is in crossroads 2.81-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="/">
<html>
<head>
<title>Crossroads Status Overview</title>
<style type="text/css">
h1 {
font-family: Verdana,Helvetica;
font-size: 12pt;
color: blue;
}
body {
font-family: Verdana,Helvetica;
font-size: 10pt;
}
td {
font-family: Verdana,Helvetica;
font-size: 10pt;
}
.backend { background-color: #f3f099; }
.info { font-size: 8pt; background-color: #ffff99; }
.footer { color: gray; }
</style>
</head>
<body>
<h1>XR Status Overview</h1>
<hr/>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template match="/status">
<table>
<xsl:apply-templates/>
</table>
</xsl:template>
<xsl:template match="/status/backend">
<tr> <td colspan="2"></td></tr>
<tr>
<td class="backend" colspan="2">
<b> Back end <xsl:value-of select="address"/> </b>
</td>
</tr>
<tr>
<td class="info">Weight</td>
<td class="info"><xsl:value-of select="weight"/></td>
</tr>
<tr>
<td class="info">Max. connections</td>
<td class="info"><xsl:value-of select="maxconnections"/></td>
</tr>
<tr>
<td class="info">Host match</td>
<td class="info"><xsl:value-of select="hostmatch"/></td>
</tr>
<tr>
<td class="info">Health state</td>
<td class="info"><xsl:value-of select="live"/></td>
</tr>
<tr>
<td class="info">Availability</td>
<td class="info"><xsl:value-of select="available"/></td>
</tr>
<tr>
<td class="info">Connections</td>
<td class="info"><xsl:value-of select="connections"/></td>
</tr>
<tr>
<td class="info">Bytes served</td>
<td class="info"><xsl:value-of select="bytesserved"/></td>
</tr>
<tr>
<td class="info">Clients served</td>
<td class="info"><xsl:value-of select="clientsserved"/></td>
</tr>
</xsl:template>
<xsl:template match="*"/>
</xsl:stylesheet>
|