report.info(path, FeatureEnum.CHARS_COUNT, Long.toString(charsCount));
if (!epubTypeInUse)
{
if (version == EPUBVersion.VERSION_3)
{
report.message(MessageId.ACC_007, new MessageLocation(path, -1, -1));
}
}
else
{
epubTypeInUse = false;
}
}
ElementLocation currentLocation = elementLocationStack.pop();
boolean inXhtml = EpubConstants.HtmlNamespaceUri.equals(ns);
if (inXhtml && "script".equals(name))
{
String attr = e.getAttribute("type");
report.info(path, FeatureEnum.HAS_SCRIPTS, (attr == null) ? "" : attr);
}
if (inXhtml && "style".equals(name))
{
String style = textNode.toString();
if (style.length() > 0)
{
CSSCheckerFactory.getInstance().newInstance(
ocf, report, style, false, path,
currentLocation.getLineNumber(),
currentLocation.getColumnNumber(), xrefChecker, version).runChecks();
}
textNode = null;
}
if (inXhtml && ("table".equals(name)))
{
if (tableDepth > 0)
{
--tableDepth;
MessageLocation location = new MessageLocation(path, currentLocation.getLineNumber(), currentLocation.getColumnNumber(), "table");
checkDependentCondition(MessageId.ACC_005, tableDepth == 0, hasTh, location);
checkDependentCondition(MessageId.ACC_006, tableDepth == 0, hasThead, location);
checkDependentCondition(MessageId.ACC_012, tableDepth == 0, hasCaption, location);