calibre's output will only pass epubcheck if the input html would also pass epubcheck. Basically you need to clean up your input html to make it XHTML 1.1 compliant. I believe tools exist to help you do that (though I haven't used any personally), html tidy comes to mind.
|