proycon / foliatools

A number of command-line tools for working with FoLiA (Format for Linguistic Annotation). Includes validators, converters, visualisers, and more.
GNU General Public License v3.0
10 stars 4 forks source link

foliavalidator gives non informative error message when the version attribute is missing #51

Open kosloot opened 1 year ago

kosloot commented 1 year ago

When validating a document without a version attribute, I get:

Error on line 0: Element FoLiA failed to validate attributes
VALIDATION ERROR against RelaxNG schema (stage 1/3), in tests/GRR.xml
Element FoLiA failed to validate attributes

A more helpful message would include a reference to the missing attribute