2010-11-25 00:04:30 -04:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
|
|
|
|
2011-01-12 04:57:54 -04:00
|
|
|
<xsl:template match="//include">
|
|
|
|
<h1>MAVLink Include Files</h1>
|
|
|
|
<p><strong><em>Including files: </em><xsl:value-of select="." /></strong></p>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="//enums">
|
|
|
|
<h1>MAVLink Type Enumerations</h1>
|
|
|
|
<xsl:apply-templates />
|
|
|
|
</xsl:template>
|
|
|
|
|
2010-11-25 00:04:30 -04:00
|
|
|
<xsl:template match="//messages">
|
2011-01-12 04:57:54 -04:00
|
|
|
<h1>MAVLink Messages</h1>
|
2010-11-25 00:04:30 -04:00
|
|
|
<xsl:apply-templates />
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="//message">
|
|
|
|
<h3 class="mavlink_message_name"><xsl:value-of select="@name" /> (#<xsl:value-of select="@id" />)</h3>
|
|
|
|
<p class="description"><xsl:value-of select="description" /></p>
|
|
|
|
|
|
|
|
<table class="sortable">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class="mavlink_field_header">Field Name</th>
|
|
|
|
<th class="mavlink_field_header">Type</th>
|
|
|
|
<th class="mavlink_field_header">Description</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<xsl:apply-templates select="field" />
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="//field">
|
|
|
|
<tr class="mavlink_field">
|
|
|
|
<td class="mavlink_name"><xsl:value-of select="@name" /></td>
|
|
|
|
<td class="mavlink_type"><xsl:value-of select="@type" /></td>
|
|
|
|
<td class="mavlink_comment"><xsl:value-of select="." /></td>
|
|
|
|
</tr>
|
|
|
|
</xsl:template>
|
|
|
|
|
2011-01-12 04:57:54 -04:00
|
|
|
<xsl:template match="//version">
|
|
|
|
<h1>MAVLink Protocol Version</h1>
|
|
|
|
<p>This file has protocol version: <xsl:value-of select="." />. The version numbers range from 1-255.</p>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="//enum">
|
|
|
|
<h3 class="mavlink_message_name"><xsl:value-of select="@name" /></h3>
|
|
|
|
<p class="description"><xsl:value-of select="description" /></p>
|
|
|
|
|
|
|
|
<table class="sortable">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class="mavlink_field_header">Field Name</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<xsl:apply-templates select="entry" />
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="//entry">
|
|
|
|
<tr class="mavlink_field">
|
|
|
|
<td class="mavlink_name"><xsl:value-of select="@name" /></td>
|
|
|
|
</tr>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
2010-11-25 00:04:30 -04:00
|
|
|
</xsl:stylesheet>
|