note 19261 added to function.xslt-process

From: Date: Thu, 21 Feb 2002 10:25:07 +0000
Subject: note 19261 added to function.xslt-process
Groups: php.notes 
Request: Send a blank email to php-notes+get-26880@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. -- http://www.php.net/manual/en/function.xslt-process.php http://master.php.net/manage/user-notes.php?action=edit+19261 http://master.php.net/manage/user-notes.php?action=delete+19261 http://master.php.net/manage/user-notes.php?action=reject+19261

« previous php.notes (#26880) next »