Sample Transformation File test-xslt.php
<?php
$path_xml = "f.xml";
$path_style = "f.xsl";
$xslt_parse = xslt_create();
if (!$output_html = xslt_process($xslt_parse, $path_xml, $path_style)) {
echo "Error using " . $path_style . " on " . $path_xml . "!\n";
exit;
}
xslt_free($xslt_parse);
echo $output_html;
?>
Related examples in the same category