xmlSchemaMap.put(METS_EXT1_1.uri,
"dist/server/xsd/mets-fedora-ext1-1.xsd");
HashMap<String, String> ruleSchemaMap = new HashMap<String, String>();
ruleSchemaMap.put(METS_EXT1_1.uri,
"dist/server/schematron/metsExtRules1-0.xml");
DOValidatorImpl v =
new DOValidatorImpl(null,
xmlSchemaMap,
"dist/server/schematron/preprocessor.xslt",
ruleSchemaMap);
if (args[1].equals("1")) {
v.validate(newIn,
METS_EXT1_1.uri,
DOValidatorImpl.VALIDATE_XML_SCHEMA,
"ingest");
System.out.println("XML Schema validation: PASSED!");
} else {
if (args[1].equals("2")) {
v.validate(newIn,
METS_EXT1_1.uri,
DOValidatorImpl.VALIDATE_SCHEMATRON,
"ingest");
System.out.println("Schematron validation: PASSED!");
} else {