source: CMDIValidator/trunk/cmdi-validator-core/xerces.patch @ 5326

Last change on this file since 5326 was 5326, checked in by Oliver Schonefeld, 10 years ago
  • re-factor project into two modules
File size: 1.2 KB
  • src/org/apache/xerces/impl/xs/XMLSchemaValidator.java

     
    13451345
    13461346        fIdConstraint = false;
    13471347        //reset XSDDescription
     1348        fXSDDescription.reset();
    13481349        fLocationPairs.clear();
    13491350        fExpandedLocationPairs.clear();
     1351        fUnparsedLocations.clear();
     1352        fGrammarBucket.reset();
    13501353
    13511354        // cleanup id table
    13521355        fValidationState.resetIDTables();
     
    26932696                }
    26942697            }
    26952698
     2699            /*
     2700             * XXX: evil hack to revisit grammar pool with location information
     2701             */
     2702            if (grammar == null) {
     2703                grammar = (SchemaGrammar) fGrammarPool.retrieveGrammar(fXSDDescription);
     2704                if (grammar != null) {
     2705                    fXSDDescription.fLocationHints = null;
     2706                }
     2707            }
     2708
    26962709            if (grammar == null || fXSDDescription.fLocationHints != null) {
    26972710                boolean toParseSchema = true;
    26982711                if (grammar != null) {
Note: See TracBrowser for help on using the repository browser.