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 2002/10/08 23:46:14 UTC

cvs commit: xml-xerces/java/src/org/apache/xerces/parsers XMLGrammarPreparser.java

neilg       2002/10/08 14:46:14

  Modified:    java/src/org/apache/xerces/parsers XMLGrammarPreparser.java
  Log:
  correct handling of continue-after-fatal-error feature.
  
  Revision  Changes    Path
  1.6       +10 -1     xml-xerces/java/src/org/apache/xerces/parsers/XMLGrammarPreparser.java
  
  Index: XMLGrammarPreparser.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/parsers/XMLGrammarPreparser.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- XMLGrammarPreparser.java	29 Aug 2002 19:41:29 -0000	1.5
  +++ XMLGrammarPreparser.java	8 Oct 2002 21:46:13 -0000	1.6
  @@ -95,6 +95,10 @@
       // Constants
       //
   
  +    // feature:  continue-after-fatal-error
  +    private final static String CONTINUE_AFTER_FATAL_ERROR =
  +        Constants.XERCES_FEATURE_PREFIX + Constants.CONTINUE_AFTER_FATAL_ERROR_FEATURE;
  +
       /** Property identifier: symbol table. */
       protected static final String SYMBOL_TABLE = 
           Constants.XERCES_PROPERTY_PREFIX + Constants.SYMBOL_TABLE_PROPERTY;
  @@ -323,6 +327,11 @@
               } catch(Exception e) {
                   // eat it up...
               }
  +        }
  +        // since our error reporter is a property we set later,
  +        // make sure features it understands are also set.
  +        if(featureId.equals(CONTINUE_AFTER_FATAL_ERROR)) {
  +            fErrorReporter.setFeature(CONTINUE_AFTER_FATAL_ERROR, value);
           }
       } //setFeature(String, boolean)
   
  
  
  

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