This commit is contained in:
jstaerk
2023-11-24 13:53:36 +01:00
parent 860d934f3d
commit d2ae0778b9
5 changed files with 1555 additions and 10 deletions

View File

@@ -377,9 +377,10 @@ public class XMLValidator extends Validator {
validateSchematron(xml, "/xslt/XR_21/XRechnung-CII-validation.xslt", 27, errorImpact);
} else if (xml.contains(":xrechnung_2.2")) { // This is the default check which is also run on en16931 files to generate notices.
validateSchematron(xml, "/xslt/XR_22/XRechnung-CII-validation.xslt", 27, errorImpact);
} 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.3"))
} else if (xml.contains(":xrechnung_2.3")) { // This is the default check which is also run on en16931 files to generate notices.
validateSchematron(xml, "/xslt/XR_23/XRechnung-CII-validation.xslt", 27, errorImpact);
} else { // This is the default check which is also run on en16931 files to generate notices.
validateSchematron(xml, "/xslt/XR_30/XRechnung-CII-validation.xslt", 27, errorImpact);
}
}

File diff suppressed because it is too large Load Diff