From:             [EMAIL PROTECTED]
Operating system: Windows XP
PHP version:      4.2.3
PHP Bug Type:     Sablotron XSL
Bug description:  <xsl:include> requires full pathname

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.
-- 
Edit bug report at http://bugs.php.net/?id=19600&edit=1
-- 
Try a CVS snapshot:  http://bugs.php.net/fix.php?id=19600&r=trysnapshot
Fixed in CVS:        http://bugs.php.net/fix.php?id=19600&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=19600&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=19600&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=19600&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19600&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=19600&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=19600&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=19600&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=19600&r=globals

Reply via email to