#27565 [Opn->Fbk]: DomXml ignoring namespace
| From: | sniper@php.net | Date: | Thu, 11 Mar 2004 14:19:08 +0000 |
| Subject: | #27565 [Opn->Fbk]: DomXml ignoring namespace | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-56304@lists.php.net to get a copy of this message | ||
ID: 27565
Updated by: sniper@php.net
Reported By: andrew dot price at boxuk dot com
-Status: Open
+Status: Feedback
Bug Type: DOM XML related
Operating System: Red Hat Enterprise Linux ES rel3
PHP Version: 4.3.4
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2004-03-11 06:35:26] andrew dot price at boxuk dot com
Description:
------------
PHP is ignoring reference to namespaces when using DOM XML functions.
Reproduce code:
---------------
$oXsl = domxml_open_file("test.xsl");
$ctx=xpath_new_context($oXsl);
$ctx->xpath_register_ns("xsl","http://www.w3.org/1999/XSL/Transform");
$aoIncludeNodes = $oXsl->get_elements_by_tagname("xsl:include",$ctx);
print_r($aoIncludeNodes);
Expected result:
----------------
Should produce array of all <xsl:include> nodes in the XSL.
This works OK on PHP4.3.2 on Windows.
Actual result:
--------------
Empty array returned but will work if following line is used instead:
$aoIncludeNodes = $oXsl->get_elements_by_tagname("include",$ctx);
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27565&edit=1