validator icon indicating copy to clipboard operation
validator copied to clipboard

Valid XML report despite a failed validation

Open InputLabNet opened this issue 8 months ago • 2 comments

Description

As a result of validation, the KoSIT validator produces an XML report listing the outcome (valid/invalid status) and a list of errors. However, suppose the validation process fails due to errors in the XSLT transformation (e.g., the XSLT function decimal being applied to a list). In that case, the report is still produced but contains only partial verification results. As a result, an invalid document may be marked as valid.

The actual status of the validation is either explicitly printed (in red, in a separate section) in the standard output of the CLI tool (easy to spot) or, in the case of daemon mode, in the output log of the server, which is hard to recognize. However, this status is not reflected in the report.

Both the XML and HTML reports may state that there are zero faults and the document is valid, even though the processing failed.

Expected Behavior

  • If validation fails due to issues in the XSLT transformation, the report should either reflect this accurately or not be created at all.
  • The report should not state that the document is valid if the actual validation process failed.
  • A clear indication of the validation failure should be visible in the report, not only in the CLI or server log.

Suggested Fix

You can improve the XML and HTML report generation to ensure that any validation failure, including issues with the XSLT transformation, is adequately captured and displayed in the report.

InputLabNet avatar May 09 '25 06:05 InputLabNet

Thx for this valuable input. Indeed you point to an important improvement which will be made.

rkottmann avatar May 09 '25 07:05 rkottmann

We plan to resolve this in the 1.6 series of versions

phax avatar Sep 03 '25 15:09 phax