Jump to content

Strange Error


CoreyR

Recommended Posts

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;
?>

Link to comment
https://forums.phpfreaks.com/topic/53103-strange-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.