Skip to content

Errors reported by epubchecker in epub generated with 7.53.0 #568

@AlexJitianu

Description

@AlexJitianu

Hi,

We are working on integrating TEI Stylesheets 7.53.0 into Oxygen. If you validate an EPUB with EPUBCheck v4.2.6 it reports the errors below. It appears to be related with the HTML5 doctype: <!DOCTYPE html>

EPUBCheck auto detects the version by looking at the structure of the archive. In the log it reports the detected version as being "2.0.1" (I think the existence of a toc.ncx is one of the markers that points to this version). So I guess you could either revert to using XHTML doctypes or change the archive structure to match EPUB 3 or a later version in which HTML doctypes are permitted.

{code}epubcheck-4.2.6>java -jar epubcheck.jar TEI-P5.epub
Validating using EPUB version 2.0.1 rules.
ERROR(HTM-004): TEI-P5.epub/OPS/index.html(-1,-1): Irregular DOCTYPE: found "", expected "".](http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd%22%3E%22.)
ERROR(HTM-004): TEI-P5.epub/OPS/index-front.1_div.1.html(-1,-1): Irregular DOCTYPE: found "", expected "".](http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd%22%3E%22.)
ERROR(HTM-004): TEI-P5.epub/OPS/index-body.1_div.1.html(-1,-1): Irregular DOCTYPE: found "", expected "".](http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd%22%3E%22.)
ERROR(HTM-004): TEI-P5.epub/OPS/index-body.1_div.2.html(-1,-1): Irregular DOCTYPE: found "", expected "".](http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd%22%3E%22.)
ERROR(HTM-004): TEI-P5.epub/OPS/index-body.1_div.3.html(-1,-1): Irregular DOCTYPE: found "", expected "".](http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd%22%3E%22.)
ERROR(HTM-004): TEI-P5.epub/OPS/P1.html(-1,-1): Irregular DOCTYPE: found "", expected "".](http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd%22%3E%22.)
ERROR(HTM-004): TEI-P5.epub/OPS/index-body.1_div.5.html(-1,-1): Irregular DOCTYPE: found "", expected "".](http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd%22%3E%22.)

Check finished with errors
Messages: 0 fatals / 7 errors / 0 warnings / 0 infos
{code}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions