So far i have been renaming the newly created file, after deleting the original. I dont like doing it that way, is there a way i can do it with the xslt_process function. Dont recommend DOM or SAX, i hate them. Anyway, XSLT is the way to go, much easier to use.
Thanks for any time you spend on this
here is an example of the way if doing the XSLT Processing
Code: Select all
$xslt = xslt_create();
if (!$res = @xslt_process($xslt, $sourceXML, $sourceXSL, $destXML))
{
print ("Error: <b>" . xslt_error($xslt) . "</b><br/>" . "Code: <b>" . xslt_errno($xslt) . "</b>");
}
xslt_free($xslt);
print $res;