|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
31 - 16 = ?
Subscribe to this entry?

 [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: Mon Apr 19 00:01:24 2021 UTC