I have a website(http://www.meteocalamillor.es) that displays weather report every 15 seconds from my weather station. To do this I have a php parser:
Code: Select all
$xsl_filename = "infometeo.xsl"; //XSL file
$xml_filename = http://mystation:1212/meteograph.cgi?text=allxml //XML file
$doc = new DOMDocument();
$xsl = new XSLTProcessor();
$doc->load($xsl_filename);
$xsl->importStyleSheet($doc);
$doc->load($xml_filename)
echo $xsl->transformToXML($doc);
Thanks