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
|