|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-03-11 09:19 UTC] sniper@php.net
[2004-03-11 11:01 UTC] chregu@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 06:00:02 2025 UTC |
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);