php.net |  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: marcin dot antczak at e-dev dot pl
New email:
PHP Version: OS:

 

 [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.... :(

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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

try setting the document base for transformations or specifying an absolute path.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Nov 13 01:01:33 2019 UTC