You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ne...@apache.org on 2003/06/06 15:32:23 UTC

cvs commit: xml-xerces/java/src/org/apache/xerces/impl XMLDTDScannerImpl.java

neilg       2003/06/06 06:32:23

  Modified:    java/src/org/apache/xerces/impl XMLDTDScannerImpl.java
  Log:
  fix entity-reading bug created by previous commit
  
  Revision  Changes    Path
  1.43      +6 -6      xml-xerces/java/src/org/apache/xerces/impl/XMLDTDScannerImpl.java
  
  Index: XMLDTDScannerImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/XMLDTDScannerImpl.java,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- XMLDTDScannerImpl.java	5 Jun 2003 21:49:03 -0000	1.42
  +++ XMLDTDScannerImpl.java	6 Jun 2003 13:32:23 -0000	1.43
  @@ -1490,14 +1490,14 @@
                   colonName.append(":");
                   colonName.append(fEntityScanner.scanName());
                   reportFatalError("ColonNotLegalWithNS", new Object[] {colonName.toString()});
  -            } 
  -            if (!skipSeparator(true, !scanningInternalSubset())) {
  +                if (!skipSeparator(true, !scanningInternalSubset())) {
  +                    reportFatalError("MSG_SPACE_REQUIRED_AFTER_ENTITY_NAME_IN_ENTITYDECL",
  +                             new Object[]{name});
  +                }
  +            } else {
                   reportFatalError("MSG_SPACE_REQUIRED_AFTER_ENTITY_NAME_IN_ENTITYDECL",
                                new Object[]{name});
               }
  -        } else {
  -            reportFatalError("MSG_SPACE_REQUIRED_AFTER_ENTITY_NAME_IN_ENTITYDECL",
  -                             new Object[]{name});
           }
   
           // external id
  
  
  

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