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/27 19:34:29 UTC

[Bug 1131] New - Namespace node not initialized with namespace URI

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1131

*** shadow/1131	Tue Mar 27 09:34:29 2001
--- shadow/1131.tmp.18359	Tue Mar 27 09:34:29 2001
***************
*** 0 ****
--- 1,36 ----
+ +============================================================================+
+ | Namespace node not initialized with namespace URI                          |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 1131                        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