summaryrefslogtreecommitdiff
path: root/doc/ebus_specification.html.xslt
diff options
context:
space:
mode:
authoryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2010-04-01 20:49:44 +0000
committeryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2010-04-01 20:49:44 +0000
commit816257ed2f7c208c427c804e1046b960d8335f84 (patch)
tree6335f51b3c5b0b6239664bb02a4d3b0c11ba005e /doc/ebus_specification.html.xslt
parent546c970638670b024539fcaebfca7a132a5bf084 (diff)
downloadebus-alt-816257ed2f7c208c427c804e1046b960d8335f84.tar.gz
ebus-alt-816257ed2f7c208c427c804e1046b960d8335f84.zip
include xml in egg
git-svn-id: http://10.2.2.13/svn/common/ebus@1626 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd
Diffstat (limited to 'doc/ebus_specification.html.xslt')
-rw-r--r--doc/ebus_specification.html.xslt66
1 files changed, 66 insertions, 0 deletions
diff --git a/doc/ebus_specification.html.xslt b/doc/ebus_specification.html.xslt
new file mode 100644
index 0000000..b0b2728
--- /dev/null
+++ b/doc/ebus_specification.html.xslt
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="utf8"?>
+<xsl:stylesheet version="1.0"
+xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<xsl:template match="/">
+ <html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf8" />
+ </head>
+ <body>
+ <h2>Ebus Geräte</h2>
+ <table class="ebus_devices">
+ <tr>
+ <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 class="ebus_packets">
+ <tr>
+ <th>Primary command</th>
+ <th>Secondary command</th>
+ <th>Beschreibung</th>
+ <th>Felder</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>
+ <table>
+ <tr>
+ <th>name</th>
+ <th>typ</th>
+ <th>offset</th>
+ </tr>
+ <xsl:for-each select="fields/*">
+ <tr>
+ <td><xsl:value-of select="@name"/></td>
+ <td><xsl:value-of select="name()"/></td>
+ <td><xsl:value-of select="@offset"/></td>
+ </tr>
+ </xsl:for-each>
+ </table>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </table>
+ </body>
+ </html>
+</xsl:template>
+
+</xsl:stylesheet>