corrected to have a default xr check again

This commit is contained in:
jstaerk
2021-09-12 18:52:12 +02:00
parent 86be2ce32d
commit 9e67bf5a94

View File

@@ -353,7 +353,8 @@ public class XMLValidator extends Validator {
} else if (xml.contains(":xrechnung_2.0")) {
// urn:cen.eu:en16931:2017#compliant#urn:xoev-dede:kosit:standard:xrechnung_2.0#conformant#urn:xoev-de:kosit:extension:xrechnung_2.0
validateSchematron(xml, "/xslt/XR_20/XRechnung-CII-validation.xslt", 27, errorImpact);
} else if (xml.contains(":xrechnung_2.1")) {
} else { // This is the default check which is also run on en16931 files to generate notices.
// As of the next version this should probably if (xml.contains(":xrechnung_2.1"))
validateSchematron(xml, "/xslt/XR_21/XRechnung-CII-validation.xslt", 27, errorImpact);
}