View Single Post
Old 12-22-2015, 05:28 PM   #1
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
A DTD bug with 9.2?

Hi

When I export to EPUB3 an odt file using my converter, it looks like this and it is EPUB3 compliant (according to Epubcheck 3.0.1.)

Code:
<!DOCTYPE html>
<html lang="fr-FR" xml:lang="fr-FR" xmlns="http://www.w3.org/1999/xhtml">
 <!-- This file was converted to xhtml by Writer2xhtml ver. 1.5.2. 
See http://writer2latex.sourceforge.net for more info. -->
 <head>
However I need to add some homework with the Calibre Editor.
After this work, my EPUB looks like this but it still is EPUB3 compliant.

Code:
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr-FR" xml:lang="fr-FR">
<!-- This file was converted to xhtml by Writer2xhtml ver. 1.5.2. 
See http://writer2latex.sourceforge.net for more info. -->
<head>
When I open it with Sigil 9.2 (to add an index for example) and saves it
(I ask Preferences to check on "exit")
It looks now like this

Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr-FR" xml:lang="fr-FR">
<!-- This file was converted to xhtml by Writer2xhtml ver. 1.5.2. 
See http://writer2latex.sourceforge.net for more info. -->
<head>
The problem is that it seems to be no more EPUB3 compliant because Epubcheck 3.0.1.
gives me this error report for each html file.

Code:
ERROR: bugreport.epub/OEBPS/Text/chapter1.html: 
Obsolete or irregular DOCTYPE statement. External DTD entities are not allowed.
Use '<!DOCTYPE html>' instead.
Unless I'm mistaken for some reason, I think that Sigil should check the opf to see if it is dealing with an EPUB2 or EPUB3 before changing the DTD

Last edited by roger64; 12-22-2015 at 05:37 PM.
roger64 is offline   Reply With Quote