#31655 [NEW]: Cannot use document() to use the "multiple sources" function
| From: | e-t172 at stargatetc dot com | Date: | Sat, 22 Jan 2005 16:00:36 +0000 |
| Subject: | #31655 [NEW]: Cannot use document() to use the "multiple sources" function | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-72669@lists.php.net to get a copy of this message | ||
From: e-t172 at stargatetc dot com
Operating system: Linux Fedora Core 3
PHP version: 5.0.3
PHP Bug Type: XSLT related
Bug description: Cannot use document() to use the "multiple sources" function
Description:
------------
(i am french, sorry for my bad english)
I try to use the document() function (http://www.w3.org/TR/xslt#document)
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 :
<root>
<element>foo</element>
</root>
doc2.xml :
<otherroot>
<element>bar</element>
</otherroot>
stylesheet.xsl :
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" />
<xsl:template match="root">
<xsl:value-of select="element" />
<xsl:value-of select="document('xml2.xml')/otherroot/element" />
</xsl:template>
</xsl:stylesheet>
Expected result:
----------------
foobar
Actual result:
--------------
foo
--
Edit bug report at http://bugs.php.net/?id=31655&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31655&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31655&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31655&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31655&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31655&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31655&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31655&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31655&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31655&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31655&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=31655&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=31655&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31655&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31655&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31655&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31655&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31655&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31655&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31655&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31655&r=mysqlcfg