You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2001/03/28 21:54:21 UTC
[Bug 1141] New - Namespace node not initialized with namespace URI
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1141
*** shadow/1141 Wed Mar 28 11:54:21 2001
--- shadow/1141.tmp.2067 Wed Mar 28 11:54:21 2001
***************
*** 0 ****
--- 1,36 ----
+ +============================================================================+
+ | Namespace node not initialized with namespace URI |
+ +----------------------------------------------------------------------------+
+ | Bug #: 1141 Product: Xerces-J |
+ | Status: NEW Version: 1.3.1 |
+ | Resolution: Platform: PC |
+ | Severity: Major OS/Version: |
+ | Priority: Component: Core |
+ +----------------------------------------------------------------------------+
+ | Assigned To: xerces-j-dev@xml.apache.org |
+ | Reported By: pattern@bway.net |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ Namespace nodes are note initialized with the namespace URI:
+
+ The bug appears to be in the first line of the following code in the class
+ org.apache.xerces.dom.DeferredAttrNSImpl:
+
+ if (namespaceURI == null && namespaceURI.length() == 0) {
+ if (prefix != null) {
+ if (prefix.equals("xmlns")) {
+ namespaceURI = "http://www.w3.org/2000/xmlns/";
+ }
+ } else if (name.equals("xmlns")) {
+ namespaceURI = "http://www.w3.org/2000/xmlns/";
+ }
+ }
+
+ The "&&" should be an "||":
+ if (namespaceURI == null || namespaceURI.length() == 0) {
+
+
+ Levi
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org