Quote:
Originally Posted by KevinH
Having the xml declaration/header is not required by all systems I think. That said the DOCTYPE is important for setting the allowed xhtml entity definitions, if it should be interpreted as strict or transitional rulesets, and quirks and things. Having it missing in a xhtml file is not the best idea especially when the pages are served up as xhtml/xml vs html.
I am surprised that epubcheck did not flag it with at least a warning if not an error.
Running Sigil's Mend will fix any missing xml header and fix any missing doctype automatically based on the epub version.
|
I have Just found this out.
I Installed the latest version of Sigil this morning. Very nice.
I did some work on a book in Calibre Editor and ran ePubcheck. I got no errors.
When I opened athebook to process it in Sigil I got the message about the not not being well formed. I said no to "fix the problem" and found I got the "not well formed" message when I tried to delete unused CSS and another feature . I ran epubcheck in Sigil - again no errors.
After a bit of invetigation I found that Sigil fixed the problem by adding a Doctype.
I logged onto Mobile Read and found this discussion.
Not a real problem and easily sorted but it is nice to know I got it right for once