diff options
author | yvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd> | 2010-05-31 20:13:35 +0000 |
---|---|---|
committer | yvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd> | 2010-05-31 20:13:35 +0000 |
commit | 1b37e7b3df4cb0076188192227bce332f8308635 (patch) | |
tree | 2d702b644840a36cae8832a47970f5639fc1f2b9 /doc/ebus_specification.txt.xslt | |
parent | 0390d8cbca750240259269a9f0c85dc342ceb19e (diff) | |
download | ebus-alt-1b37e7b3df4cb0076188192227bce332f8308635.tar.gz ebus-alt-1b37e7b3df4cb0076188192227bce332f8308635.zip |
xslt->text
git-svn-id: http://10.2.2.13/svn/common/ebus@1671 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd
Diffstat (limited to 'doc/ebus_specification.txt.xslt')
-rw-r--r-- | doc/ebus_specification.txt.xslt | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/doc/ebus_specification.txt.xslt b/doc/ebus_specification.txt.xslt new file mode 100644 index 0000000..dda1e33 --- /dev/null +++ b/doc/ebus_specification.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> |