{
ManifestItem mi = epack.getManifest().getItem(i);
if (vtsd.isValidMediaType(mi.getMediaType()))
{
XMLContentDocParser parser = new XMLContentDocParser(this.zip, report);
ScriptTagHandler sh = new ScriptTagHandler(this.report);
String fileToParse = epack.getManifestItemFileName(mi);
ZipEntry entry = this.zip.getEntry(fileToParse);
if (entry == null)
{
report.message(MessageId.RSC_001, new MessageLocation(this.epack.getFileName(), -1, -1), fileToParse);
continue;
}
sh.setFileName(fileToParse);
sh.setVersion(epack.getVersion());
parser.parseDoc(fileToParse, sh);
if (sh.getScriptElementCount() > 0 || sh.getInlineScriptCount() > 0)
{
if (sh.getInlineScriptCount() > 0)
{
report.info(fileToParse, FeatureEnum.SCRIPT, "inline");
}
if (sh.getScriptElementCount() > 0)
{
report.info(fileToParse, FeatureEnum.SCRIPT, "tag");
}
if (epack.getVersion() != EPUBVersion.VERSION_2)
{