You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by le...@locus.apache.org on 2000/01/19 21:09:07 UTC

cvs commit: xml-xerces/java/src/org/apache/xerces/dom ElementNSImpl.java AttrNSImpl.java

lehors      00/01/19 12:09:07

  Modified:    java/src/org/apache/xerces/dom ElementNSImpl.java
                        AttrNSImpl.java
  Log:
  fixed localName setting in case there is no prefix
  
  Revision  Changes    Path
  1.2       +2 -2      xml-xerces/java/src/org/apache/xerces/dom/ElementNSImpl.java
  
  Index: ElementNSImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/ElementNSImpl.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ElementNSImpl.java	2000/01/14 02:47:04	1.1
  +++ ElementNSImpl.java	2000/01/19 20:09:07	1.2
  @@ -1,4 +1,4 @@
  -/* $Id: ElementNSImpl.java,v 1.1 2000/01/14 02:47:04 lehors Exp $ */
  +/* $Id: ElementNSImpl.java,v 1.2 2000/01/19 20:09:07 lehors Exp $ */
   /*
    * The Apache Software License, Version 1.1
    *
  @@ -101,7 +101,7 @@
           int index = qualifiedName.indexOf(':');
           if (index < 0) {
               this.prefix = null;
  -            this.localName = null;
  +            this.localName = qualifiedName;
           } 
           else {
               this.prefix = qualifiedName.substring(0, index); 
  
  
  
  1.2       +3 -3      xml-xerces/java/src/org/apache/xerces/dom/AttrNSImpl.java
  
  Index: AttrNSImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/AttrNSImpl.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AttrNSImpl.java	2000/01/14 02:47:04	1.1
  +++ AttrNSImpl.java	2000/01/19 20:09:07	1.2
  @@ -1,4 +1,4 @@
  -/* $Id: AttrNSImpl.java,v 1.1 2000/01/14 02:47:04 lehors Exp $ */
  +/* $Id: AttrNSImpl.java,v 1.2 2000/01/19 20:09:07 lehors Exp $ */
   /*
    * The Apache Software License, Version 1.1
    *
  @@ -100,14 +100,14 @@
           int index = qualifiedName.indexOf(':');
           if (index < 0) {
               this.prefix = null;
  -            this.localName = null;
  +            this.localName = qualifiedName;
           } 
           else {
               this.prefix = qualifiedName.substring(0, index); 
               this.localName = qualifiedName.substring(index+1);
           }
           
  -    	if (!DocumentImpl.isXMLName(prefix)) {
  +    	if (!DocumentImpl.isXMLName(qualifiedName)) {
       	    throw new DOMExceptionImpl(DOMException.INVALID_CHARACTER_ERR, 
       	                               "INVALID_CHARACTER_ERR");
           }