#20518 [Opn->Asn]: xslt_set_base has no effect
| From: | msopacua@php.net | Date: | Wed, 20 Nov 2002 19:24:30 +0000 |
| Subject: | #20518 [Opn->Asn]: xslt_set_base has no effect | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-25357@lists.php.net to get a copy of this message | ||
ID: 20518
Updated by: msopacua@php.net
Reported By: erwan@barzhoneg.com
-Status: Open
+Status: Assigned
Bug Type: XSLT related
Operating System: win2000 / IIS 5
PHP Version: 4.3.0RC1
-Assigned To:
+Assigned To: msopacua
New Comment:
It's actually related to #20177.
You are right that once xslt_set_base is called, we shouldn't override
this.
Assigned.
Previous Comments:
------------------------------------------------------------------------
[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