error 26 to be raised again
This commit is contained in:
@@ -484,7 +484,7 @@ public class XMLValidator extends Validator {
|
|||||||
} catch (XPathExpressionException e) {
|
} catch (XPathExpressionException e) {
|
||||||
LOGGER.error(e.getMessage(), e);
|
LOGGER.error(e.getMessage(), e);
|
||||||
}
|
}
|
||||||
int activePatterns=0;
|
/* int activePatterns=0;
|
||||||
expression = "//*[local-name() = 'active-pattern']";
|
expression = "//*[local-name() = 'active-pattern']";
|
||||||
firedAsserts = null;
|
firedAsserts = null;
|
||||||
try {
|
try {
|
||||||
@@ -492,10 +492,10 @@ public class XMLValidator extends Validator {
|
|||||||
activePatterns = firedAsserts.getLength();
|
activePatterns = firedAsserts.getLength();
|
||||||
} catch (XPathExpressionException e) {
|
} catch (XPathExpressionException e) {
|
||||||
LOGGER.error(e.getMessage(), e);
|
LOGGER.error(e.getMessage(), e);
|
||||||
}
|
}*/
|
||||||
|
|
||||||
|
|
||||||
if (firedRules+activePatterns == 0) {
|
if (firedRules == 0) {
|
||||||
context.addResultItem(new ValidationResultItem(ESeverity.error, "No rules matched, XML to minimal?").setSection(26)
|
context.addResultItem(new ValidationResultItem(ESeverity.error, "No rules matched, XML to minimal?").setSection(26)
|
||||||
.setPart(EPart.fx));
|
.setPart(EPart.fx));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user