blob: a18127e977f7ee9c3ef4807e4f14b3276fd7893a (
plain)
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
|
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<h2>Ebus Geräte</h2>
<table border="1">
<tr bgcolor="#9acd32">
<th>Adresse</th>
<th>Gerät</th>
<th>Typ</th>
</tr>
<xsl:for-each select="ebus/devices/device">
<tr>
<td>
<!-- anchor -->
<xsl:value-of select="@address"/>
</td>
<td><xsl:value-of select="text()"/></td>
<td><xsl:value-of select="@type"/></td>
</tr>
</xsl:for-each>
</table>
<h2>Ebus Packete</h2>
<table border="1">
<tr bgcolor="#9acd32">
<th>Primary command</th>
<th>Secondary command</th>
<th>Description</th>
<th>Content</th>
</tr>
<xsl:for-each select="ebus/packets/packet">
<tr>
<td><xsl:value-of select="@primary"/></td>
<td><xsl:value-of select="@secondary"/></td>
<td><xsl:value-of select="@description"/></td>
<td>
<xsl:for-each select="fields/*">
<table>
<tr><th>name</th><th>typ</th><th>offset</th></tr>
<tr>
<td><xsl:value-of select="@name"/></td>
<td><xsl:value-of select="name()"/></td>
<td><xsl:value-of select="@offset"/></td>
</tr>
</table>
</xsl:for-each>
</td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
|