Hi list
I've tried to set up PHP 4.1.1 on Windows XP Pro with php_xslt.dll
I've done all the initial work (i think) and phpinfo() shows that XSLT support is enabled.
But when I try the script below found as an example, I get unknown encoding '' error in line 1.
I feel I have tried anything.
Please tell me what wrong with the snippet below or if I'm missing something in the php.ini
$xh = xslt_create();
$html = xslt_process($xh, "test.xml","test.xsl");
if ($html!=""){
print "SUCCESS, test.xml was transformed by test.xsl into result.xml";
print ", result.xml has the following contents\n<br>\n";
echo $html;
}
else {
print "Sorry, transformation failed<br><br>";
}
xslt_free($xh);
Kind regards
Lennart Pedersen