Permalink
Browse files

Improved XSL

  • Loading branch information...
LorenzMeier committed Jul 9, 2012
1 parent 488c1de commit fa3fc4c7a41cd2c991424facfad61c283cc6e92d
Showing with 13 additions and 6 deletions.
  1. +13 −6 doc/mavlink_to_html_table.xsl
@@ -18,17 +18,19 @@
</xsl:template>
<xsl:template match="//message">
+ <a>
+ <xsl:attribute name="name">
+ <xsl:value-of select="@name"/>
+ </xsl:attribute>
+ </a>
+ <h3 class="mavlink_message_name"><xsl:value-of select="@name" /> (
<a>
<xsl:attribute name="href">
#<xsl:value-of select="@name"/>
</xsl:attribute>
- <h3 class="mavlink_message_name"><xsl:value-of select="@name" /> (#<xsl:value-of select="@id" />)</h3>
- </a>
- <a>
- <xsl:attribute name="name">
- <xsl:value-of select="@name"/>
- </xsl:attribute>
+ #<xsl:value-of select="@id" />
</a>
+ )</h3>
<p class="description"><xsl:value-of select="description" /></p>
<table class="sortable">
<thead>
@@ -58,6 +60,11 @@
</xsl:template>
<xsl:template match="//enum">
+ <a>
+ <xsl:attribute name="name">
+ ENUM_<xsl:value-of select="@name"/>
+ </xsl:attribute>
+ </a>
<h3 class="mavlink_message_name"><xsl:value-of select="@name" /></h3>
<p class="description"><xsl:value-of select="description" /></p>

0 comments on commit fa3fc4c

Please sign in to comment.