<?php
$path_xml = "f.xml";
$path_style = "f.xsl";
if(!$xml_doc = domxml_open_file($path_xml)) {
echo "Error! Unable to open " . $path_xml . "!\n";
exit;
}
if(!$stylesheet = domxml_xslt_stylesheet_file($path_style)) {
echo "Error! Unable to open " . $path_style . "!\n";
exit;
}
$transformed = $stylesheet->process($xml_doc);
echo $stylesheet->result_dump_mem($transformed);
?>
|