Skip to content

Commit

Permalink
down to 4 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jstaerk committed May 18, 2024
1 parent 465f114 commit fd5546e
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public void validate() throws IrrecoverableValidationError {
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);
xsltFilename = "/xslt/XR_30/XRechnung-CII-validation.xslt";

XrechnungSeverity = ESeverity.error;
} else if (isExtended) {
LOGGER.debug("is EXTENDED");
Expand Down Expand Up @@ -339,8 +339,11 @@ public void validate() throws IrrecoverableValidationError {
}
}

// main schematron validation
validateSchematron(zfXML, xsltFilename, mainSchematronSectionErrorTypeCode, ESeverity.error);
if (xsltFilename!=null) {
// main schematron validation
validateSchematron(zfXML, xsltFilename, mainSchematronSectionErrorTypeCode, ESeverity.error);

}

if (context.getFormat().equals("CII")) {

Expand Down

0 comments on commit fd5546e

Please sign in to comment.