numWarnings += numAnnoDefErrors;
} else {
numErrors += numAnnoDefErrors;
}
ValidationResult vr = validationService.validate(document);
for (String e : vr.getErrors()) {
if (permissive) {
numWarnings++;
if (!quiet) {
reportable.warning("VALIDATION WARNING: " + e);
}
} else {
numErrors++;
if (!quiet) {
reportable.error("VALIDATION ERROR: " + e);
}
}
}
for (String w : vr.getWarnings()) {
if (pedantic) {
numErrors++;
if (!quiet) {
reportable.error("VALIDATION ERROR: " + w);
}