}
//--------------------------------------------------------------------------
private void setUpXmlResolver() {
CatalogManager catMan = new CatalogManager();
catMan.setAllowOasisXMLCatalogPI(false);
catMan.setCatalogClassName("org.apache.xml.resolver.Catalog");
String catFiles = System.getProperty(Constants.XML_CATALOG_FILES);
if (catFiles == null) catFiles="";
if(Log.isDebugEnabled(Log.JEEVES)) Log.debug(Log.JEEVES,"Using oasis catalog files "+catFiles);
setBlankXSLFile(System.getProperty(Constants.XML_CATALOG_BLANKXSLFILE));
catMan.setCatalogFiles(catFiles);
catMan.setIgnoreMissingProperties(true);
catMan.setPreferPublic(true);
catMan.setRelativeCatalogs(false);
catMan.setUseStaticCatalog(false);
String catVerbosity = System.getProperty(Constants.XML_CATALOG_VERBOSITY);
if (catVerbosity == null) catVerbosity = "1";
int iCatVerb = 1;
try {
iCatVerb = Integer.parseInt(catVerbosity);
} catch (NumberFormatException nfe) {
Log.error(Log.JEEVES, "Failed to parse "+ Constants.XML_CATALOG_VERBOSITY+" "+catVerbosity);
nfe.printStackTrace();
}
if(Log.isDebugEnabled(Log.JEEVES)) Log.debug(Log.JEEVES,"Using catalog resolver verbosity "+iCatVerb);
catMan.setVerbosity(iCatVerb);
catResolver = new CatalogResolver(catMan);
@SuppressWarnings("unchecked")
Vector<String> catalogs = catResolver.getCatalog().getCatalogManager().getCatalogFiles();