// Detect the version of the first root file
// and compare with the asked version (if set)
EPUBVersion detectedVersion = null;
EPUBVersion validationVersion;
OPFData opfData = ocf.getOpfData().get(opfPaths.get(0));
if (opfData == null)
return;// The error must have been reported during parsing
detectedVersion = opfData.getVersion();
report.info(null, FeatureEnum.FORMAT_VERSION, detectedVersion.toString());
assert (detectedVersion != null);
if (version != null && version != detectedVersion)
{