Hi
There is currently a difference betwen calibre's Editor and Sigil. The Editor gets systematically rid of the DOCTYPE and Kovid Goyal writes that the DOCTYPE is required only when there are named entities (like nbsp).
I am personnally quite happy with this but I hear people arguing against it nearly for "moral" reasons. Illegal, non respect of such norm, and so on.
I would like to find the reference file where this is an allowed use. The problem for me is that any document I find gives a reference to another and so on.
I am sure this is old news, because some years ago already,
writer2xhtml offered an option to produce an EPUB2 (EPUB3 was non-existent at that time) using only UTF8 or UTF16 characters - like the Editor today. (see screenshot)
I speak about the common EPUB2 not about EPUB3, html 5 or anything else. I found in the xhtml 1.1 specs telling that
the DOCTYPE was required (screenshot 2). But there is another one
about xhtml 2 which says that it MAY only be required (screenshot 3) and is only necessary "when the character encoding of the document is other than the default UTF-8 and UTF-16" but it's a draft.
Which one applies to EPUB 2? How old is the xhtml 2 specification?
IDPF specifies for the EPUB 2.01 (May 2010), that the required MIME media type for application/xhtml + xml must be XHTML 1.1. That would mean that a DOCTYPE is required.
http://www.idpf.org/epub/20/spec/OPS...m#Section1.3.4