12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <?php
- $xml_file_name = "https://raw.github.com/mavlink/mavlink/master/message_definitions/v1.0/common.xml";
- $xsl_file_name= "https://raw.github.com/mavlink/mavlink/master/doc/mavlink_to_html_table.xsl";
- $xml = file_get_contents($xml_file_name);
- $xml_doc = new DomDocument;
- $xml_doc->loadXML($xml);
- $xsl = file_get_contents($xsl_file_name);
- $xsl_doc = new DomDocument;
- $xsl_doc->loadXML($xsl);
- $xsltproc = new XsltProcessor();
- $xsltproc->importStylesheet($xsl_doc);
- ?>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
- <html>
- <head>
- <title>MAVLINK Common Message set specifications</title>
- <link rel="stylesheet" type="text/css" href="mavlink.css">
- </head>
- <body>
- <h1>MAVLINK Common Message Set</h1>
- <p>
- These messages define the common message set, which is the reference message set implemented by most ground control stations and autopilots.
- </p>
- <?php
- if ($html = $xsltproc->transformToXML($xml_doc))
- {
- echo $html;
- }
- else
- {
- trigger_error("XSL transformation failed",E_USER_ERROR);
- }
- ?>
- <br />
- <br />
- <p>
- Messages are defined by the <a href="https://raw.github.com/mavlink/mavlink/master/message_definitions/v1.0/common.xml">common.xml</a> file. The C packing/unpacking code is generated from this specification, as well as the HTML documentaiton in the section above.<br />
- <br />
- <i>The XML displayed here is updated on every commit and therefore up-to-date.</i>
- </p>
- </body>
- </html>
- <?php
- ?>
|