ID:               31655
 Updated by:       [EMAIL PROTECTED]
 Reported By:      e-t172 at stargatetc dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         XSLT related
 Operating System: Linux Fedora Core 3
 PHP Version:      5.0.3
 New Comment:

It works for me and I use it quite often in my applications... No idea,
why it doesn't work for you... 




Previous Comments:
------------------------------------------------------------------------

[2005-01-22 17:00:35] e-t172 at stargatetc dot com

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 this bug report at http://bugs.php.net/?id=31655&edit=1

Reply via email to