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