Closed kosloot closed 3 years ago
Ok, somethings definitely wrong in the python library then, the document looks fine. Must be something I was working on yesterday that broke this probably.
Must be something I was working on yesterday that broke this probably.
@proycon I didn't update foliatools, so that can't be the case, I assume
After an update, the error still remains.
> foliavalidator -V FoLiA-tools v2.5.1, using FoLiA v2.5.0 with library FoLiApy v2.5.3
I looked up the code in libfolia, and it has an explicit exception for AbstractCorrectionChild in check_set_declaration(). those are accepted as is, without any checking. (too lax maybe?)
I implemented that solution as well now, no need to check for declarations on AbstractChildCorrection indeed. But I can't really understand why it failed on your file while it succeeds on all the tests and examples in the test suite (which use
Your file was fine and didn't seem all that different from the existing tests...
it has 2 correction-annotation declarations, maybe that was the culprit?
given the attached new_bug.xml.txt document
foliavalidator comes up with this error:
This can be resolved by removing 1 of the
correction-annotation
declarations. But of course this is an excerpt form a document where more corrector were in charge.A
new-annotation
doesn't exist. And also adding aset
or aprocessor
to<new>
is not allowed (and undesirable)So how to fix this document? Or does foliavalidator need fixing?