?php $xh = xslt_create(); xslt_set_log($xh, true); xslt_set_log($xh, getcwd(). 'myfile.log'); $result = xslt_process($xh, 'dog.xml', 'pets.xsl'); print($result); xslt_free($xh);?
By default logging is disabled, in order to enable logging you must first call xslt_set_log() with a boolean parameter which enables logging, then if you want to set the log file to debug to, you must then pass it a string containing the filename: