count patterns as fired rules->testing UBL positive

This commit is contained in:
jstaerk
2021-11-13 17:51:11 +01:00
parent f56e37bda9
commit 099ce840d1
3 changed files with 3 additions and 39 deletions

View File

@@ -18,6 +18,7 @@ import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XPathExpression;
import javax.xml.xpath.XPathFactory;
import com.helger.schematron.svrl.jaxb.ActivePattern;
import org.mustangproject.XMLTools;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -406,7 +407,7 @@ public class XMLValidator extends Validator {
.setLocation(failedAssert.getLocation()).setCriterion(failedAssert.getTest()).setSection(section)
.setPart(EPart.fx));
failedRules++;
} else if (object instanceof FiredRule) {
} else if ((object instanceof FiredRule)||(object instanceof ActivePattern)) {
firedRules++;
}
}