Re: #19600 [Opn->Csd]: <xsl:include> requires full pathname
| From: | Melvyn Sopacua | Date: | Fri, 04 Oct 2002 08:02:43 +0000 |
| Subject: | Re: #19600 [Opn->Csd]: <xsl:include> requires full pathname | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-88999@lists.php.net to get a copy of this message | ||
Hi,
his particular problem may be solved, but that doesn't solve the issue that Windows relative
paths don't seem to work.
So I'm thinking we should set the base (SablotSetBase not sure about SablotSetSchemeBase) to
$_SERVER['PATH_TRANSLATED'] by default, in xslt_create.
Any objections or pitfalls I'm missing?
On 4 Oct 2002 derick@php.net wrote:
>>> Date: 4 Oct 2002 07:26:07 -0000
>>> From: derick@php.net
>>> To: php-bugs@lists.php.net
>>> Subject: #19600 [Opn->Csd]: <xsl:include> requires full pathname
>>>
>>> ID: 19600
>>> Updated by: derick@php.net
>>> Reported By: tony@marston-home.demon.co.uk
>>> -Status: Open
>>> +Status: Closed
>>> Bug Type: XSLT related
>>> Operating System: Windows XP
>>> PHP Version: 4.2.3
>>> New Comment:
>>>
>>> closing then
>>>
>>>
>>> Previous Comments:
>>> ------------------------------------------------------------------------
>>>
>>> [2002-10-03 19:50:13] tony@marston-home.demon.co.uk
>>>
>>> That works, thank you. Problem solved.
>>>
>>> ------------------------------------------------------------------------
>>>
>>> [2002-10-03 04:28:57] k.schroeder@php.net
>>>
>>> Please try
>>> http://www.php.net/manual/en/function.xslt-set-base.php to
>>> solve your problem.
>>>
>>> Regards, Kai
>>>
>>> ------------------------------------------------------------------------
>>>
>>> [2002-09-25 13:53:10] tony@marston-home.demon.co.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.
>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>>
--
Melvyn.