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

Chapter template and XML schema errors #18

Open
gavento opened this issue Jul 26, 2020 · 1 comment
Open

Chapter template and XML schema errors #18

gavento opened this issue Jul 26, 2020 · 1 comment

Comments

@gavento
Copy link
Contributor

gavento commented Jul 26, 2020

While building the ebook multi-agent-model with the current version (086aca6), the epub is not a valid XML which breaks my reader (OReader at C-Tech Lexis; works for ~99% other epubs).

The issues reported by Calibre book editor (in calibre: edit imported book -> check book) are abount an undefined namespace. Indeed the header of chapter files is:

<html xmlns="http://www.w3.org/1999/xhtml"><head/><body><section epub:type="chapter" id="chapter">
    <!-- Your contents here -->
  <h1>Against "System 1" and "System 2" (subagent sequence) </h1><div><p>The terms System 1 and System 2 [...]

This is weird since the template for a chapter (templates/chapter.xhtml) has a different structure and does declare the namespace ...
Perhaps the template is not used, or the EPUB library silently does something weird to it afterwards?

Errors from calibre. Manually removing the namespace epub: fixed this for my reader.

ERROR: Parsing failed: Namespace prefix epub for type on section is not defined, line 1, column 98    [OEBPS/chapter-10.xhtml]
ERROR: Parsing failed: Namespace prefix epub for type on section is not defined, line 1, column 98    [OEBPS/chapter-11.xhtml]
ERROR: Parsing failed: Namespace prefix epub for type on section is not defined, line 1, column 98    [OEBPS/chapter-12.xhtml]
ERROR: Parsing failed: Namespace prefix epub for type on section is not defined, line 1, column 98    [OEBPS/chapter-13.xhtml]
ERROR: Parsing failed: Namespace prefix epub for type on section is not defined, line 1, column 98    [OEBPS/chapter-14.xhtml]
ERROR: Parsing failed: Namespace prefix epub for type on section is not defined, line 1, column 98    [OEBPS/chapter-15.xhtml]
ERROR: Parsing failed: Namespace prefix epub for type on section is not defined, line 1, column 98    [OEBPS/chapter-16.xhtml]
ERROR: Parsing failed: Namespace prefix epub for type on section is not defined, line 1, column 98    [OEBPS/chapter-17.xhtml]
ERROR: Parsing failed: Namespace prefix epub for type on section is not defined, line 1, column 98    [OEBPS/chapter-18.xhtml]
ERROR: Parsing failed: Namespace prefix epub for type on section is not defined, line 1, column 98    [OEBPS/chapter-2.xhtml]
ERROR: Parsing failed: Namespace prefix epub for type on section is not defined, line 1, column 98    [OEBPS/chapter-3.xhtml]
ERROR: Parsing failed: Namespace prefix epub for type on section is not defined, line 1, column 98    [OEBPS/chapter-4.xhtml]
ERROR: Parsing failed: Namespace prefix epub for type on section is not defined, line 1, column 98    [OEBPS/chapter-5.xhtml]
ERROR: Parsing failed: Namespace prefix epub for type on section is not defined, line 1, column 98    [OEBPS/chapter-6.xhtml]
ERROR: Parsing failed: Namespace prefix epub for type on section is not defined, line 1, column 98    [OEBPS/chapter-7.xhtml]
ERROR: Parsing failed: Namespace prefix epub for type on section is not defined, line 1, column 98    [OEBPS/chapter-8.xhtml]
ERROR: Parsing failed: Namespace prefix epub for type on section is not defined, line 1, column 98    [OEBPS/chapter-9.xhtml]
@AABoyles
Copy link
Owner

Thanks @gavento! Looking in to it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants