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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 19:01:33 2024 UTC