Date: 10/08/02
- Next message: Yasuo Ohgaki: "Re: [PHP-DOC] iconv-extension"
- Previous message: Friedhelm Betz: "Re: [PHP-DOC] features/error-handling"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 16228
Comment by: Dominik.Klein <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 experienced this issue, too and solved it using xslt_set_base().
Anyway I think that this should default to the actual script-dir (like
$PHP_SELF or something) so that you can use relative paths without
having to worry about setting the paths right.
Previous Comments:
------------------------------------------------------------------------
[2002-09-26 01:41:18] mike <email protected>
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 :-)
------------------------------------------------------------------------
[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
- Next message: Yasuo Ohgaki: "Re: [PHP-DOC] iconv-extension"
- Previous message: Friedhelm Betz: "Re: [PHP-DOC] features/error-handling"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

