sandygao    2002/08/01 06:54:32

  Modified:    java/src/org/apache/xerces/impl/dv/xs XSSimpleTypeDecl.java
  Log:
  Fixing bug [11349]. The normalized value in the ValidatedInfo object was
  overwritten if the type is a list. Now we store the normalized value *after*
  each of the items is validated, so it won't be overwritten.
  
  Revision  Changes    Path
  1.17      +4 -5      
xml-xerces/java/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java
  
  Index: XSSimpleTypeDecl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- XSSimpleTypeDecl.java     30 Jul 2002 22:16:55 -0000      1.16
  +++ XSSimpleTypeDecl.java     1 Aug 2002 13:54:32 -0000       1.17
  @@ -1483,9 +1483,6 @@
                   nvalue = content;
               }
   
  -            // update normalized value
  -            validatedInfo.normalizedValue = nvalue;
  -            
               StringTokenizer parsedList = new StringTokenizer(nvalue);
               int countOfTokens = parsedList.countTokens() ;
               Object[] avalue = new Object[countOfTokens];
  @@ -1506,8 +1503,10 @@
               }
   
               validatedInfo.actualValue = avalue;
  +            validatedInfo.memberType = null;
               validatedInfo.memberTypes = memberTypes;
  -
  +            validatedInfo.normalizedValue = nvalue;
  +  
               return avalue;
   
           } else { // (fVariety == VARIETY_UNION)
  
  
  

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

Reply via email to