How to validate an XML document against a Schematron file

From TEIWiki

Jump to: navigation, search

These are some various options:

  • Use an xslt processor with a schematron engine (see Schematron website)
  • Make an NVDL script and use onvdl or a modern version of jing.
  • Use Probatron. Since the commandline command itself is a bit complicated, and it is often useful to see just the textual error messages rather than the entire SVRL output, Syd has written a little front-end to it. If you speak bash, feel free to play with it as if it were copyleft Syd Bauman, available under the LGPL.
  • The amazing Ken Holman has a text-only implementation based on the reference implementation.
  • The <oXygen/> XML Editor has built-in support for validating against ISO Schematron.
  • Syd has written a front-end to the reference implementation of Schematron, but he hasn't used it much since he started using Probatron. It depends on xmlstarlet being installed as `xml` and Saxon as `saxon`. If you speak bash, feel free to play with it as if it were copyleft Syd Bauman, available under the LGPL.
Personal tools