Skip to content

v12.4.0

Choose a tag to compare

@phax phax released this 28 Nov 20:22
· 53 commits to master since this release
  • Created new submodule phive-result-pdf for generating PDF validation result reports (PhivePdfHelper), with optional PDF/A (all levels supported by ph-pdf-layout) and PDF/UA.
    The fonts (Open Sans and Kurinto Mono) are embedded.
    The styling can be changed in a subclass.
    See issue #39
  • Added the shared label enumeration EPhiveResultLabel in phive-api, used by the HTML and the PDF output.
    EPhiveHtmlLabel and the PhiveHtmlHelper methods using it are deprecated; use PhiveHtmlHelper.label (EPhiveResultLabel, String) and allLabels (Map) instead
  • PhiveHtmlHelper no longer shows the column "Location" of an error table if no error of that validation layer has a location
  • Added PhiveHtmlHelper.vendor (String, String) to show the vendor that performed the validation ("Validated by ...")
  • Added PhiveHtmlHelper.showFooter (boolean) to hide the footer with the link to phive
  • Added SchematronZipResolver in phive-xml that resolves a Schematron in a ZIP file, including all files it includes, in memory into one self-contained, preprocessed Schematron (abstract patterns resolved, reports, diagnostics and titles kept).
    Includes are only resolved from the ZIP entries, relative to the including file.
    See issue #40
  • Added InMemoryZipContent in phive-xml that reads a ZIP file with limits for the unzipped size and the number of entries into memory.
    DefaultVESLoaderXSD uses it; the error messages for too many entries and a too large unzipped size now start with "XSD resource type 'zip'" instead of "XSD ZIP file"
  • Updated to ph-schematron 10.3.5
  • Schematron validation with the pure XPath engine (SCHEMATRON_PURE_XPATH2) now runs on Saxon's native tree (TinyTree) instead of the wrapped DOM, for DOM sources, resources and partial sources alike, as the XSLT based engines already did.
    Rules with // predicates on large documents no longer take time that grows quadratically with the document size.
    See issue #42
  • Added the requirement resolver IVESRequirementResolver (VESLoader.setRequirementResolver): a requires or partialRequires whose VESID is not contained in the repository is resolved to an IValidationExecutorSet supplied by the caller, e.g. a rule set built in Java.
    The repository has precedence.
    The executors of the set are used as they are; custom error levels of the requirement are applied to clones of its Schematron executors.
    LoadedVES.isFromExecutorSet () tells whether a VES was resolved this way.
    See issue #41
  • Behaviour change: the stopOnError attribute of requires and partialRequires (default true) is now applied.
    If a layer of the required VES produces an error, all subsequent layers (including the rules of the requiring VES) are added to the result as skipped.
    Previously the attribute was read but ignored.
    Use stopOnError="false" to keep the previous behaviour

Full Changelog: phive-parent-pom-12.3.2...phive-parent-pom-12.4.0