-
Notifications
You must be signed in to change notification settings - Fork 0
/
pvlist.xsl
69 lines (56 loc) · 2.04 KB
/
pvlist.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<html>
<head>
<title>USAXS: EPICS process variables to be monitored and reported</title>
</head>
<body>
<h1>USAXS: EPICS process variables to be monitored and reported</h1>
<small>
<p>
XML version:
<xsl:value-of select="pvwatch/@version"/>
(update version if format of XML file changes)
</p>
</small>
<h2>definitions</h2>
<dl>
<xsl:apply-templates select="pvwatch/definition"/>
</dl>
<table border="2">
<tr style="background-color: grey; color: white;">
<th>mne</th>
<th>PV</th>
<th>_ignore_</th>
<th>description</th>
<th>display_format</th>
</tr>
<xsl:apply-templates select="pvwatch/EPICS_PV"/>
</table>
<hr />
<p>
<small>
report page: $Id$
</small>
</p>
</body>
</html>
</xsl:template>
<xsl:template match="definition">
<dt><xsl:value-of select="@name"/></dt>
<dd><xsl:value-of select="."/></dd>
</xsl:template>
<xsl:template match="EPICS_PV">
<tr>
<xsl:if test="position() mod 2=0">
<xsl:attribute name="bgcolor">Azure</xsl:attribute>
</xsl:if>
<td><xsl:value-of select="@mne"/></td>
<td><xsl:value-of select="@PV"/></td>
<td><xsl:value-of select="@_ignore_"/></td>
<td><xsl:value-of select="@description"/></td>
<td><xsl:value-of select="@display_format"/></td>
</tr>
</xsl:template>
</xsl:stylesheet>