php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19600 <xsl:include> requires full pathname
Submitted: 2002-09-25 13:53 UTC Modified: 2002-10-04 02:26 UTC
From: tony at marston-home dot demon dot co dot uk Assigned:
Status: Closed Package: XSLT related
PHP Version: 4.2.3 OS: Windows XP
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tony at marston-home dot demon dot co dot uk
New email:
PHP Version: OS:

 

 [2002-09-25 13:53 UTC] tony at marston-home dot demon dot co dot uk
I am using Windows XP, PHP 4.2.3, Apache 1.3.26

I am using XSLT to produce HTML output. The code I use is as follows:

$arg_buffer = array("/xml" => $xml_string, "/xslt" => $xsl_string);
$result = xslt_process($xp, "arg:/xml", "arg:/xslt", NULL, $arg_buffer, $params)))

My xsl file contains as 'include' statement which points to a file which exists in the same folder as the PHP script.

I initially tried it as <xsl:include href="pagination.xsl"/> but it produced this error:

'arg:/pagination.xsl' not found (error code: 65)

I then tried it with <xsl:include href="file://pagination.xsl"/> and got this error:

cannot open file '/pagination.xsl' (error code: 4)

It only works if I enter the full path, as in <xsl:include href="file://c:/blah/blah/blah/pagination.xsl"/>

It is very inconvenient to have to specify the full pathname in every <xsl:include> statement. Should it not first look in the current directory?

This may be more of an enhancement request than a bug.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-03 04:28 UTC] k.schroeder@php.net
Please try http://www.php.net/manual/en/function.xslt-set-base.php to solve your problem.

Regards, Kai
 [2002-10-03 19:50 UTC] tony at marston-home dot demon dot co dot uk
That works, thank you. Problem solved.
 [2002-10-04 02:26 UTC] derick@php.net
closing then
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC