diff options
author | yvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd> | 2010-03-31 22:41:59 +0000 |
---|---|---|
committer | yvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd> | 2010-03-31 22:41:59 +0000 |
commit | 945d6889bef6de79ea78a1f80966fcef697b9610 (patch) | |
tree | 896244752eb4ce192b8001705d3db1a6ce6f548b /doc/spec2html.xslt | |
parent | 478338642d202b8cbc8cbcce02f24c84301d1273 (diff) | |
download | ebus-alt-945d6889bef6de79ea78a1f80966fcef697b9610.tar.gz ebus-alt-945d6889bef6de79ea78a1f80966fcef697b9610.zip |
xml spec
git-svn-id: http://10.2.2.13/svn/common/ebus@1622 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd
Diffstat (limited to 'doc/spec2html.xslt')
-rw-r--r-- | doc/spec2html.xslt | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/doc/spec2html.xslt b/doc/spec2html.xslt new file mode 100644 index 0000000..a18127e --- /dev/null +++ b/doc/spec2html.xslt @@ -0,0 +1,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> |