summaryrefslogtreecommitdiff
path: root/ebus-xml/transform/ebus.txt.xslt
diff options
context:
space:
mode:
authoryvesf <yvesf-git@xapek.org>2011-06-25 17:14:10 +0200
committeryvesf <yvesf-git@xapek.org>2011-06-25 17:14:10 +0200
commit1ccc6292abd33742cd615f1094e23dfdbe6a37f4 (patch)
tree608280a0580cf75dee69e9d4b4deb6c6fb0bea89 /ebus-xml/transform/ebus.txt.xslt
parenta85541d9f7622813ec98bf042164414edc1fb366 (diff)
downloadebus-alt-1ccc6292abd33742cd615f1094e23dfdbe6a37f4.tar.gz
ebus-alt-1ccc6292abd33742cd615f1094e23dfdbe6a37f4.zip
ebus-xml
Diffstat (limited to 'ebus-xml/transform/ebus.txt.xslt')
-rw-r--r--ebus-xml/transform/ebus.txt.xslt49
1 files changed, 49 insertions, 0 deletions
diff --git a/ebus-xml/transform/ebus.txt.xslt b/ebus-xml/transform/ebus.txt.xslt
new file mode 100644
index 0000000..dda1e33
--- /dev/null
+++ b/ebus-xml/transform/ebus.txt.xslt
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="utf8"?>
+<xsl:stylesheet version="1.0"
+xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<!-- TODO: padding -->
+ <xsl:output method="text" />
+ <xsl:template match="/">
+=== Ebus Geräte
+
+Adresse | Gerät | Typ
+
+ <xsl:for-each select="ebus/devices/device">
+ <xsl:value-of select="@address"/>
+ <xsl:text>|</xsl:text>
+ <xsl:value-of select="text()"/>
+ <xsl:text>|</xsl:text>
+ <xsl:value-of select="@type"/>
+ <xsl:text>
+</xsl:text>
+ </xsl:for-each>
+
+=== Ebus Pakete
+
+Primary Command | Secondary Command | Name | Description
+ ---- offset | typ | name | description
+ <xsl:for-each select="ebus/packets/packet">
+ <xsl:value-of select="@primary"/>
+ <xsl:text>|</xsl:text>
+ <xsl:value-of select="@secondary"/>
+ <xsl:text>|</xsl:text>
+ <xsl:value-of select="@name"/>
+ <xsl:text>|</xsl:text>
+ <xsl:value-of select="@description"/>
+
+ <xsl:for-each select="fields/*">
+ <xsl:value-of select="@offset"/>
+ <xsl:text>|</xsl:text>
+ <xsl:value-of select="name()"/>
+ <xsl:text>|</xsl:text>
+ <xsl:value-of select="@name"/>
+ <xsl:text>|</xsl:text>
+ <xsl:value-of select="text()"/>
+ <xsl:text>
+ </xsl:text>
+ </xsl:for-each>
+ <xsl:text>
+ </xsl:text>
+ </xsl:for-each>
+ </xsl:template>
+</xsl:stylesheet>