checkVersionCompatibility

fnOdfCompatResult checkVersionCompatibility(string versionString, string generator, OdfCompatibilityTarget target, ref OdfDiagnosticCollector collector) @safe pure

Checks an ODF document version against the compatibility target and reports findings through the diagnostic collector.

This function should be called after parsing the content version attribute from content.xml, meta.xml, or styles.xml.

Parameters

versionStringThe raw version attribute value.
generatorOptional generator string from meta:generator.
targetThe compatibility target to check against.
collectorDiagnostic collector for reporting findings.

Returns

An OdfCompatResult with the detected version information.