<?php
$xmlFile = "suivicd.xml";
$xslFile = "suivicd.xsl";
// Create a new processor handle
$th = xslt_create() or die("Can't create XSLT handle!");
// Open the XML and XSL files
$xh = fopen($xmlFile, "r") or die("Can't open XML file");
$sh = fopen($xslFile, "r") or die("Can't open XSL file");
// Read in the XML and XSL contents
$xmlContent = fread($xh, filesize($xmlFile));
$xslContent = fread($sh, filesize($xslFile));
$xslt = xslt_create();
$args = array("/xml" => $xmlContent,
"/xsl"=> $xslContent
);
$data = xslt_process($xslt, "arg:/xml", "arg:/xsl", NULL, $args);
echo $data;
xslt_free($xslt);
?>