Emacs can perform on-the-fly checking of XML documents against Relax NG schemata, but only if they are available in Compact syntax.
The trang tool can perform the conversion, like this:
trang -I rng -O rnc /usr/lib/python2.7/site-packages/bkr/common/schema/beaker-job.rng beaker-jobs.rnc
It would be nice if the conversion result were stored at a well-known location (preferably independent of the Python version), so that it is possible to hard-code references to it.
1) As a build step, so that we can ship it as in our next beaker releases.
2) Alternatively, we're already publishing the schema on beaker-project.org (https://beaker-project.org/docs/_downloads/beaker-job.rng). An easier way could be to simply release a compact version along side the beaker-job.rng
We will release this feature in Beaker 27.0, as this will require a spec modification.