Skip to content
d5457c9 Mar 19, 2012
79 lines (64 sloc) 2.13 KB
// Requires the installation of php5-xsl
// e.g. on Debian/Ubuntu: sudo apt-get install php5-xsl
// Load the file from the repository / server.
// Update this URL if the file location changes
$xml_file_name = "";
// Load the XSL transformation file from the repository / server.
// This file can be updated by any client to adjust the table
$xsl_file_name= "";
// Load data XML file
$xml = file_get_contents($xml_file_name);
$xml_doc = new DomDocument;
// Load stylesheet XSL file
$xsl = file_get_contents($xsl_file_name);
$xsl_doc = new DomDocument;
$xsltproc = new XsltProcessor();
<title>MAVLINK Common Message set specifications</title>
<link rel="stylesheet" type="text/css" href="mavlink.css">
<h1>MAVLINK Common Message Set</h1>
These messages define the common message set, which is the reference message set implemented by most ground control stations and autopilots.
// process the files and write the output to $out_file
if ($html = $xsltproc->transformToXML($xml_doc))
echo $html;
trigger_error("XSL transformation failed",E_USER_ERROR);
<br />
<br />
Messages are defined by the <a href="">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>
//$xml_file_name = "";
//// Load data XML file
//$xml = file_get_contents($xml_file_name);
//// Show the current code
//$geshi_xml = new GeSHi($xml, 'xml');
//$display_xml = $geshi_xml->parse_code();
//echo $display_xml;
Something went wrong with that request. Please try again.