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

Last change on this file since 5481 was 5481, checked in by Oliver Schonefeld, 10 years ago
File size: 1.5 KB
  • src/org/apache/xerces/impl/xs/XMLSchemaValidator.java

     
    13451345
    13461346        fIdConstraint = false;
    13471347        //reset XSDDescription
     1348        if (fXSDDescription != null) {
     1349            fXSDDescription.reset();
     1350        }
    13481351        fLocationPairs.clear();
    13491352        fExpandedLocationPairs.clear();
     1353        if (fUnparsedLocations != null) {
     1354            fUnparsedLocations.clear();
     1355        }
     1356        if (fGrammarBucket != null) {
     1357            fGrammarBucket.reset();
     1358        }
    13501359
    13511360        // cleanup id table
    13521361        fValidationState.resetIDTables();
     
    26932702                }
    26942703            }
    26952704
     2705            /*
     2706             * BEGIN EVIL HACK: revisit grammar pool with location informtion
     2707             */
     2708            if ((grammar == null) && (fGrammarPool != null)) {
     2709                grammar = (SchemaGrammar) fGrammarPool.retrieveGrammar(fXSDDescription);
     2710                if (grammar != null) {
     2711                    fXSDDescription.fLocationHints = null;
     2712                }
     2713            }
     2714            /*
     2715             * END EVIL HACK
     2716             */
     2717
    26962718            if (grammar == null || fXSDDescription.fLocationHints != null) {
    26972719                boolean toParseSchema = true;
    26982720                if (grammar != null) {
Note: See TracBrowser for help on using the repository browser.