CoreyR Posted May 26, 2007 Share Posted May 26, 2007 Ok, here we go..... The following gives me an error of "XSLT processing error: unknown encoding '' <?php // Create an XSLT processor $xsltproc = xslt_create(); // Perform the transformation $html = xslt_process($xsltproc, 'http://developer.newcondosonline.com/rss-properties-los-angeles.xml', 'http://coreyr.modwest.com/test/test.xsl'); // Detect errors if (!$html) die('XSLT processing error: '.xslt_error($xsltproc)); // Destroy the XSLT processor xslt_free($xsltproc); // Output the resulting HTML echo $html; ?> If I download the XML file and upload it to my server and use the following code it works. (applying no changes to the XML) <?php // Create an XSLT processor $xsltproc = xslt_create(); // Perform the transformation $html = xslt_process($xsltproc, 'test2.xml', 'test.xsl'); // Detect errors if (!$html) die('XSLT processing error: '.xslt_error($xsltproc)); // Destroy the XSLT processor xslt_free($xsltproc); // Output the resulting HTML echo $html; ?> Quote Link to comment https://forums.phpfreaks.com/topic/53103-strange-error/ Share on other sites More sharing options...
Diego17 Posted May 27, 2007 Share Posted May 27, 2007 Have you tried setting the right encoding? http://www.php.net/manual/en/function.xslt-set-encoding.php Quote Link to comment https://forums.phpfreaks.com/topic/53103-strange-error/#findComment-262490 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.