[PHP-DOC] #16228 [Com]: XSLT file path issues From: mike <email protected>
Date: 09/26/02

 ID: 16228
 Comment by: mike <email protected>
 Reported By: shanx <email protected>
 Status: Open
 Bug Type: Documentation problem
 Operating System: Windows XP
 PHP Version: 4.1.2
 New Comment:

I also agree, this is not a Decumentations Problem and should be
reclassified.

There is a bug in the xslt_process code that expects relative paths to
be relative to apache exe's path (i'm using php as a module) eg for me
it looks for files in i:/httpd/apache/. It should be looking in the
path of the current script.

- Mike :-)

Previous Comments:
------------------------------------------------------------------------

[2002-04-11 20:03:36] marklauter <email protected>

I am also having this problem. However, I don't think this should be
considered a documentation problem. I should be able to use relative
paths when performing XSL transformations, and I can't. In my opinion,
having to specify an explicit path is not a good solution. I don't
have to use an explicit path when using include() and shouldn't when
using XSLT either.

Thanks,

Mark

------------------------------------------------------------------------

[2002-04-09 16:21:14] jimw <email protected>

recategorizing as documentation problem.

------------------------------------------------------------------------

[2002-03-25 14:41:36] hash <email protected>

not really a but,
this should work.

file://c:/apache/htdocs/xsltest/1.xsl

i don't mind prefixing the extra "file://", but at least this should be
documented

------------------------------------------------------------------------

[2002-03-22 22:04:42] shanx <email protected>

I have installed sablotron (as indicated here:
http://shanx.com/php/xsl/getXsl.htm) and XSLT itself seems to be
working. However, I have a problem with file paths, or rather where I
need to put the XSL and the XML files.

My directory structure is like this:

    webroot = c:\apache\htdocs
    phproot = c:\apache\php

Let us say that I try my XSLT samples in:

    c:\apache\htdocs\xsltest

    (sample code at the link above)
 
I try putting my xsl files (1.xsl, 1.xml) into this folder but it
doesnt work and gives me an error that tells me that the files cannot
be found in "c:\apache\php". Which is the phproot!

When I put the files in "c:\apache\php" (phproot) it works.

Why does php_xslt.dll expect the files to be in PHP root rather than
the document folder? How can i change this to be able to pick up files
from the document root ("htdocs/xsltest" in my example) itself?

Thanks,
Shanx

------------------------------------------------------------------------

-- 
Edit this bug report at http://bugs.php.net/?id=16228&edit=1

-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php