<?php
Header("Content-type: image/svg+xml");
//
error_reporting(63);
$xml = "xml/proj10.xml";
$xslt = "xslt/tree.xslt";

 // Allocate a new XSLT processor
 $xh = xslt_create();

 // Process the document, returning the result into the $result variable
 $result = xslt_process($xh, $xml, $xslt);
 if ($result) {
     print $result;
 }
 else {
     print "Sorry, " + $xml + " could not be transformed by tree.xslt into";
     print "  the \$result variable. The reason is that " . xslt_error($xh) . 
     print " and the error code is " . xslt_errno($xh);
 }

 xslt_free($xh);

 ?>