XLIFF 2.0 Validation: additional flags and one tweak
Make several changes to lib-xliff2 to allow for laxer validation. Validation of the underlying library is exposed into okf_xliff2 as a binary flag (maxValidation.b), so these flags will all be considered false (ie, the behavior of the filter will be relaxed) for filter configurations that contain maxValiation.b=false.
-
Added a new validation option to allow for less strict processing of "monolingual" files. When disabled, empty
<target>elements will be allowed, even if notrgLangis declared, and atrgLangattribute consisting of the empty string will be treated as not present, rather than as a validation error. -
Added a validation option which, when not set, allows for
<file>elements containing no<unit>or<group>content to be accepted. -
Tweaked validation such that enforcement of NMTOKEN types in element ids is only enforced by schema validation, and is no longer redundantly enforced by the code.