Enable EN16931 schema validation for XRechnung.
Add a test case with an invalid XR (elements in wrong order).
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user