|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18079 unable to get value from file via document() xslt function
Submitted: 2002-06-30 18:46 UTC Modified: 2002-07-03 08:34 UTC
From: marcin dot antczak at e-dev dot pl Assigned:
Status: Not a bug Package: XSLT related
PHP Version: 4.2.1 OS: windows 2000
Private report: No CVE-ID: None
 [2002-06-30 18:46 UTC] marcin dot antczak at e-dev dot pl
I have files: test.xml, test2.xml and test.xsl
and in xslt there is:

<xsl:value-of select="document('test2.xml')//root/@value"/>

and xslt_process($xh, $xmlFile, $xslFile works ok - there is a value taken via document() function in output

but when I'll assign data from test.xml and test.xsl to strings then in output of:
xslt_process($xh, 'arg:/_xml', 'arg:/_xsl', NULL, $args);
there is no value from file referenced via document() function.... :(


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-03 08:34 UTC]
this would be a sablot issue either way...

try setting the document base for transformations or specifying an absolute path.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat May 15 17:01:23 2021 UTC