venu        2003/12/08 02:20:35

  Modified:    java/src/org/apache/xerces/dom Tag: jaxp13-2_6-branch
                        DOMNormalizer.java
  Log:
  Check for null values  before setting schema normalized values as attributes of
  xmlns:abc .. are not validated and PSVI doesnot provide the same.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.43.2.1  +6 -2      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.43
  retrieving revision 1.43.2.1
  diff -u -r1.43 -r1.43.2.1
  --- DOMNormalizer.java        18 Nov 2003 07:34:36 -0000      1.43
  +++ DOMNormalizer.java        8 Dec 2003 10:20:35 -0000       1.43.2.1
  @@ -1545,7 +1545,11 @@
                                        //       flag to "true" which may overwrite a 
"false"
                                        //       value from the attribute list.
                                        boolean specified = attr.getSpecified();
  -                                     
attr.setValue(attrPSVI.getSchemaNormalizedValue());
  +                                     //For now .
  +                                     // namespace attributes xmlns:ve are not 
validated.
  +                                     String value = 
attrPSVI.getSchemaNormalizedValue();
  +                                     if(value != null)
  +                                             attr.setValue(value);
                                        if (!specified) {
                                                ((AttrImpl) 
attr).setSpecified(specified);
                                        }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to