Open kosloot opened 5 years ago
Hmm yeah, the validator actually does three stages, first it simply invokes the RelaxNG stylesheet, which produced messages like this. Only if that passes it processes the document with the library. The last stage is a serialisation check. If you want to do only library validation you can pass the --quick
option, which should produce a better error too.
For FoLiA v2, the version attribute is mandatory.
But that means that pre folia2.0 document that lack a version are always rejected. That's why I introduced the bogus value.
Ah right, that makes sense yes. I might need to do that too then,
test file:
Error on line 0: Element FoLiA failed to validate attributes VALIDATION ERROR against RelaxNG schema (stage 1/3), in empty2.xml Element FoLiA failed to validate attributes