if (tldDigester.getFactory().getClass().getName().indexOf("xerces")!=-1) {
tldDigester = patchXerces(tldDigester);
}
// Set the schemaLocation
url = TldConfig.class.getResource(Constants.TldSchemaResourcePath_20);
SchemaResolver tldEntityResolver = new SchemaResolver(url.toString(),
tldDigester);
// FIXME: if (xmlValidation) {
if (false) {
tldDigester.setSchema(url.toString());
}
url = TldConfig.class.getResource(Constants.TldDtdResourcePath_11);
tldEntityResolver.register(Constants.TldDtdPublicId_11,
url.toString());
url = TldConfig.class.getResource(Constants.TldDtdResourcePath_12);
tldEntityResolver.register(Constants.TldDtdPublicId_12,
url.toString());
tldEntityResolver = registerLocalSchema(tldEntityResolver);
tldDigester.setEntityResolver(tldEntityResolver);