sandygao    2002/10/17 08:47:07

  Modified:    java/src/org/apache/xerces/impl/xs XMLSchemaValidator.java
  Log:
  Fixing bug [13593]. Need to reset the first character to a space
  in the normliazed string buffer.
  
  Revision  Changes    Path
  1.115     +3 -2      
xml-xerces/java/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
  
  Index: XMLSchemaValidator.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java,v
  retrieving revision 1.114
  retrieving revision 1.115
  diff -u -r1.114 -r1.115
  --- XMLSchemaValidator.java   8 Oct 2002 21:45:44 -0000       1.114
  +++ XMLSchemaValidator.java   17 Oct 2002 15:47:06 -0000      1.115
  @@ -1582,7 +1582,6 @@
           // ensure the ch array is big enough
           if (fNormalizedStr.ch == null || fNormalizedStr.ch.length < value.length+1) 
{
               fNormalizedStr.ch = new char[value.length+1];
  -            fNormalizedStr.ch[0] = ' ';
           }
           // don't include the leading ' ' for now. might include it later.
           fNormalizedStr.offset = 1;
  @@ -1632,10 +1631,12 @@
                       // previous chunk ended on whitespace
                       // insert whitespace
                       fNormalizedStr.offset = 0;
  +                    fNormalizedStr.ch[0] = ' ';
                   } else if (spaces == 1 || spaces == 3) {
                       // previous chunk ended on character,
                       // this chunk starts with whitespace
                       fNormalizedStr.offset = 0;
  +                    fNormalizedStr.ch[0] = ' ';
                   }
               }
           }
  
  
  

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

Reply via email to