source:
CMDIValidator/trunk/cmdi-validator-core/xerces.patch
@
5481
Last change on this file since 5481 was 5481, checked in by , 10 years ago | |
---|---|
File size: 1.5 KB |
-
src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
1345 1345 1346 1346 fIdConstraint = false; 1347 1347 //reset XSDDescription 1348 if (fXSDDescription != null) { 1349 fXSDDescription.reset(); 1350 } 1348 1351 fLocationPairs.clear(); 1349 1352 fExpandedLocationPairs.clear(); 1353 if (fUnparsedLocations != null) { 1354 fUnparsedLocations.clear(); 1355 } 1356 if (fGrammarBucket != null) { 1357 fGrammarBucket.reset(); 1358 } 1350 1359 1351 1360 // cleanup id table 1352 1361 fValidationState.resetIDTables(); … … 2693 2702 } 2694 2703 } 2695 2704 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 2696 2718 if (grammar == null || fXSDDescription.fLocationHints != null) { 2697 2719 boolean toParseSchema = true; 2698 2720 if (grammar != null) {
Note: See TracBrowser
for help on using the repository browser.