|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31655 Cannot use document() to use the "multiple sources" function
Submitted: 2005-01-22 17:00 UTC Modified: 2005-01-22 17:47 UTC
From: e-t172 at stargatetc dot com Assigned:
Status: Not a bug Package: XSLT related
PHP Version: 5.0.3 OS: Linux Fedora Core 3
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.
Bug Type:
From: e-t172 at stargatetc dot com
New email:
PHP Version: OS:


 [2005-01-22 17:00 UTC] e-t172 at stargatetc dot com
(i am french, sorry for my bad english)

I try to use the document() function ( in a XSL stylesheet to use multiple sources in a transformation.

No effect : the expression doesn't return any node - but no error !

I have verifyed the paths : all clear.

Reproduce code:
(exemple - not really tested)

doc1.xml :


doc2.xml :


stylesheet.xsl :

<xsl:stylesheet version="1.0" xmlns:xsl="">
<xsl:output method="text" />
<xsl:template match="root">
<xsl:value-of select="element" />
<xsl:value-of select="document('xml2.xml')/otherroot/element" />

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-22 17:47 UTC]
It works for me and I use it quite often in my applications... No idea, why it doesn't work for you... 

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Apr 21 21:01:24 2021 UTC