Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NCX Doctype in EPUB 3 is causing an ERROR #591

Closed
tofi86 opened this issue Sep 9, 2015 · 2 comments
Closed

NCX Doctype in EPUB 3 is causing an ERROR #591

tofi86 opened this issue Sep 9, 2015 · 2 comments
Labels
type: not an issue The issue is rejected (not an actual issue or not relevant)

Comments

@tofi86
Copy link
Collaborator

tofi86 commented Sep 9, 2015

Validating using EPUB version 3.0.1 rules.

ERROR (OPF-073) at "dpi-test_EPUB3.epub/OEBPS/toc.ncx" (line 2, col 100):
   External identifiers must not appear in the document type declaration.

epubcheck 4.0.0 throws this ERROR when having a toc.ncx file with a DOCTYPE declaration for backwards compatibility in an EPUB 3 book:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN" "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd">
<ncx xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops"
...

removing the doctype fixes the error, but why is the DOCTYPE forbidden?

@rdeltour
Copy link
Member

rdeltour commented Sep 9, 2015

why is the DOCTYPE forbidden?

This comes from XML Conformance criteria in the Publications spec:

External identifiers must not appear in the document type declaration.

@rdeltour rdeltour added the type: not an issue The issue is rejected (not an actual issue or not relevant) label Sep 9, 2015
@rdeltour rdeltour closed this as completed Sep 9, 2015
@tofi86
Copy link
Collaborator Author

tofi86 commented Sep 9, 2015

Okay, thanks...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: not an issue The issue is rejected (not an actual issue or not relevant)
Projects
None yet
Development

No branches or pull requests

2 participants