You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by el...@apache.org on 2003/01/17 15:30:03 UTC

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

elena       2003/01/17 06:30:03

  Modified:    java/src/org/apache/xerces/dom DOMNormalizer.java
  Log:
  According to the latest DOM L3 clarification XML 1.0 attribute value normalization
  will not happen in the DOM (since DOM exposes the Infoset).
  
  Revision  Changes    Path
  1.26      +6 -6      xml-xerces/java/src/org/apache/xerces/dom/DOMNormalizer.java
  
  Index: DOMNormalizer.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/DOMNormalizer.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- DOMNormalizer.java	8 Jan 2003 21:42:04 -0000	1.25
  +++ DOMNormalizer.java	17 Jan 2003 14:30:03 -0000	1.26
  @@ -333,7 +333,7 @@
                               //removeDefault(attr, attributes);
                               attr.normalize();
                               // XML 1.0 attribute value normalization
  -                            normalizeAttributeValue(attr.getValue(), attr);                            
  +                            //normalizeAttributeValue(attr.getValue(), attr);                            
                           }
                       }
                   }
  @@ -596,7 +596,7 @@
                           }
                       } else {
                           // XML 1.0 Attribute value normalization
  -                        value = normalizeAttributeValue(value, attr);
  +                        // value = normalizeAttributeValue(value, attr);
                           prefix = attr.getPrefix();
                           prefix = (prefix == null || 
                                     prefix.length() == 0) ? XMLSymbols.EMPTY_STRING :fSymbolTable.addSymbol(prefix);
  @@ -744,7 +744,7 @@
                       }
                       */
                       // XML 1.0 Attribute value normalization
  -                    value = normalizeAttributeValue(value, attr);
  +                    //value = normalizeAttributeValue(value, attr);
                       
                       // reset id-attributes
                       ((AttrImpl)attr).setIdAttribute(false);
  @@ -801,7 +801,7 @@
                       // data
                       int colon = name.indexOf(':');
                       // XML 1.0 Attribute value normalization
  -                    value = normalizeAttributeValue(value, attr);
  +                    //value = normalizeAttributeValue(value, attr);
                       // reset id-attributes
                       ((AttrImpl)attr).setIdAttribute(false);
   
  @@ -904,7 +904,7 @@
           qname.uri =  (namespace != null)?fSymbolTable.addSymbol(namespace):null;
       }
   
  -	/**
  +	/* REVISIT: remove this method if DOM does not change spec.
   	 * Performs partial XML 1.0 attribute value normalization and replaces
        * attribute value if the value is changed after the normalization.
        * DOM defines that normalizeDocument acts as if the document was going 
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org