Enable EN16931 schema validation for XRechnung.

Add a test case with an invalid XR (elements in wrong order).
This commit is contained in:
Matthias Kilian
2024-09-09 14:31:30 +02:00
parent 63bc167a1a
commit 8d8540ce30
3 changed files with 222 additions and 1 deletions

View File

@@ -254,7 +254,7 @@ public class XMLValidator extends Validator {
the validation against the XRechnung Schematron will happen below but a
XRechnung is a EN16931 subset so the validation vis a vis FACTUR-X_EN16931.xslt=schematron also has to pass
* */
//validateSchema(zfXML.getBytes(StandardCharsets.UTF_8), "ZF_211/EN16931/FACTUR-X_EN16931.xsd", 18, EPart.fx);
validateSchema(zfXML.getBytes(StandardCharsets.UTF_8), currentZFVersionDir + "/EN16931/FACTUR-X_EN16931.xsd", 18, EPart.fx);
XrechnungSeverity = ESeverity.error;
} else if (isExtended) {