This is because libxml gives crappy error messages for RelaxNG failures.
It would be good to have a CI setup, it seems there is a package for Ubuntu (better than Fedora where I needed to self compile) sudo apt install jing so we would need to improve the CI pipeline to run this and pass the generated .manual.xml from doc-base, but then you get huuuuuge line numbers as we are not working on a per-file basis.
Might be possible to just check individual files, but no idea if that works with entities.