Skip to content

v1.4

Choose a tag to compare

@nivaca nivaca released this 12 Nov 20:17
· 20 commits to main since this release

Fixes

  • Schema- and pattern-level <let>s are now honoured. Previously only rule-level <let>s were read, so any test using a variable declared higher up failed to evaluate and was silently skipped, so a document could pass with exit code 0. (They are evaluated in the rule's context, not the document root.)
  • Line / xml:id resolution in -v now works for no-namespace and undeclared-namespace elements, and for offenders that are attributes or text nodes (previously l.?).

Changes

  • XPath evaluation errors are reported once per rule with a node count, and the summary flags the verdict as INCOMPLETO. The exit code is unchanged.
  • Let/current() wrapping is precomputed when the schema loads.
  • Refactor: shared cache_al_dia and href_xml_model helpers; validate-all.sh now reuses href_xml_model instead of its own xml-model parsing.