PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3173 *** shadow/3173 Mon Aug 20 05:02:55 2001 --- shadow/3173.tmp.21621 Mon Aug 20 05:02:55 2001 *************** *** 0 **** --- 1,56 ---- + +============================================================================+ + | Xalan 2.2.D9: XPath does not catch namespace | + +----------------------------------------------------------------------------+ + | Bug #: 3173 Product: XalanJ2 | + | Status: NEW Version: 2.2.x | + | Resolution: Platform: All | + | Severity: Critical OS/Version: Other | + | Priority: Other Component: org.apache.xpath | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + Error in Xalan 2.2.D9 + + Use XPathAPI to select nodes from a doc and output the NodeList. v2.2.D9 does not +catch the ietf namespace... + + XPath was "(//. | //@* | //namespace::*)" + + Document was (newlines added for readability) + + <doc> + <w3 xmlns='' xmlns:a='http://www.w3.org'> + <ietf xmlns='' xmlns:a='http://www.ietf.org'/> + </w3> + </doc> + + The output looks different in 2.2.D7 and 2.2.D9: + + + Using Xalan v2.2.D7, I get this result: + + 0: [#document: null] + 1: [doc: null] + 2: [w3: null] + 3: xmlns="" + 4: xmlns:a="http://www.w3.org" + 5: [ietf: null] + 6: xmlns="" + 7: xmlns:a="http://www.ietf.org" + + Using Xalan v2.2.D9, I get the folowing result (namely, the ietf namespace node is +omitted: + + 0: [#document: null] + 1: [doc: null] + 2: [w3: null] + 3: xmlns="" + 4: xmlns:a="http://www.w3.org" + 5: [ietf: null] + 6: xmlns="" + + + Regards, Christian
