#20518 [Asn->Csd]: xslt_set_base has no effect
ID: 20518
Updated by: msopacua@php.net
Reported By: erwan@barzhoneg.com
-Status: Assigned
+Status: Closed
Bug Type: XSLT related
Operating System: win2000 / IIS 5
PHP Version: 4.3.0RC1
Assigned To: msopacua
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2002-11-20 13:24:30] msopacua@php.net
It's actually related to #20177.
You are right that once xslt_set_base is called, we shouldn't override
this.
Assigned.
------------------------------------------------------------------------
[2002-11-20 08:37:03] erwan@barzhoneg.com
when I use the following code in an include, the xslt base directory
defaults the directory of the include (probably has something to do
with bug #20514 and the current directory in includes).
The big problem is that The xslt_base function doesn't change the base
directory for xslt processing. As a result, imports and dtd references
don't work. The solution obviously is to place the xslt functions
include in the same directory as the xsl, xml and dtd files. Is this a
bug ?
$args = array ( '/_xml' => $str_xml ,
'/_xsl' => $str_xsl);
$xp = xslt_create();
xslt_set_base( $xp,'file:///D:/www/xadmin/');
$out = xslt_process($xp, 'arg:/_xml', 'arg:/_xsl', NULL, $args,
$params);
xslt_free($xp);
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20518&edit=1
Thread (3 messages)