*
*/
// define XML and XSL sources
$XMLfile = $qsvars["XMLfile"] ? str_replace("../","",$qsvars["XMLfile"]).".xml" : "site.xml";
$XSLfile = "web/site.xsl";
if (function_exists('xslt_create')) {
$processor = xslt_create();
$fileBase = 'file://' . getcwd () . '/';
xslt_set_base ( $processor, $fileBase );
$result = xslt_process($processor, $fileBase.$XMLfile, $fileBase.$XSLfile, NULL, array(), $params);
if(!$result) {
echo "Trying to parse ".$XMLfile." with ".$XSLfile."...
";
echo "ERROR #".xslt_errno($processor) . " : " . xslt_error($processor);
}
echo $result;
} else { ?>