View Single Post
Old 05-05-2015, 05:35 PM   #3
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)
I know Calibre did not do Doctype for EPUB2. I think one of the points was to get rid of entities which had bothered Sigil users some time and to use utf-8 only. This is the past.

But maybe, it could offer an option for EPUB3 where entities cannot be used? I read this comment from a qualified representative of the IDPF :

Quote:
EPUB 3 uses XHTML5 for content documents, so a doctype isn't required. Adding the HTML5 doctype isn't harmful, either:

<!DOCTYPE html>

It has the benefit of triggering the correct validation in some XML editors, and I suppose could also avoid your content being rendered in quirks mode if it's incorrectly served up as text/html.

As HTML is no longer defined by DTDs, EPUB 3 removed the ability to reference external entities from the doctype. If you include an XHTML 1.1 doctype, you're going to get this error when you validate, as that's what it's attempting to do:
External entities are not allowed in XML. External entity declaration found: %OEBEntities

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