note 19261 rejected from function.xslt-process by alindeman
| From: | alindeman@php.net | Date: | Thu, 21 Feb 2002 13:19:40 +0000 |
| Subject: | note 19261 rejected from function.xslt-process by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-26883@lists.php.net to get a copy of this message | ||
MOST SERIOUS BUG
The guy who tested the Windows installation made a either a crutial error or poorly documented this
function.
If you are using Windows (any version) with php 4.1.1 (and probably 4.1.0 as well), and try to
execute this function like this:
$html = xslt_process( $xsltproc, 'c:\www\temp\XSL\test.xml',
'c:\www\temp\XSL\test.xsl' );
you will get
Warning: Sablotron error on line 1: unknown encoding '' in c:\www\temp\xsl\test.php on
line 9
XSLT processing error: unknown encoding ''
Note the "unkown encoding '' "
To fix, you have to add file:// to the beginning like this:
$html = xslt_process( $xsltproc, 'file://c:\www\temp\XSL\test.xml',
'file://c:\www\temp\XSL\test.xsl' );
Let's hope they fix this because this is not required on *Unix.