Skip to content

v1.5

Choose a tag to compare

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

New

  • --json output for validate.py: lists every violation with pattern, context, assert/report, role, interpolated message, line and xml:id, plus XPath errors per rule and the schema source. A malformed document becomes an error entry instead of aborting the run.
  • VS Code extension (vscode/, 0.1.0): validates XML/TEI files on open and save, showing Schematron violations, and jing's RelaxNG errors for .rng sources, as editor diagnostics and in the Problems panel. role="warning"/"info" set the severity. The .vsix below bundles validate.py.

Install the extension

code --install-extension validate-schematron-0.1.0.vsix

You need Python with pip install saxonche lxml; set schematron.pythonPath if they're in a venv. jing is optional. On Linux, use a native (RPM/deb) VS Code rather than the Flatpak, which can't see your host Python or jing. See vscode/README.md for settings.

Other changes

  • Validation is separated from text reporting; the terminal output is unchanged.
  • Fixed a broken options table in README.md.