View Single Post
Old 02-04-2011, 04:09 AM   #12
Brianigoe
Junior Member
Brianigoe began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2011
Location: Hereford, UK
Device: None
Quote:
Originally Posted by DMSmillie View Post
Hi Brianigoe, and welcome to MobileRead forums.

The best thing would be to create a new thread in this (the EPUB) forum. I saw your other post in the Calibre forum:



- and it looks like you have a range of problems with the HTML code in your EPUB file. The answer to "how to fix them" depends on what method you're using to create the EPUB file and to create the HTML code in the first place, and how much you understand about HTML code.

The error you refer to here:



indicates that you've got one or more <br /> elements in your HTML code which contain the "clear" attribute, e.g.:

Code:
<br clear="all" />
However as far as I know, the "clear" attribute isn't valid for <br /> elements in XHTML Strict (it's valid for HTML 4.01, but EPUBs use XHTML 1.0 or XHTML 1.1).

Similarly, from your other post, you refer to a validation error referring to "hspace" - again, that's an HTML attribute which isn't valid in XHTML Strict.

I'm not entirely sure about the "Picture 2" reference - I'd need to see the exact error message, but I suspect it might be that you're using "Picture 2" as the value for an 'id' attribute - you can only use letters, numbers and the underscore character - no spaces.

Finally, the reference to "the <language> element is missing"... again, it's not clear without seeing the full error message exactly as it was displayed, but I suspect it might refer to the .opf file (an XML file that forms part of an EPUB book) - there should be a metadata element in that file defining the main language used in the book, and it could be that it's missing from your EPUB.

I know this doesn't help directly with the question of how to fix these errors, but hopefully it provides some useful background on what the errors mean. If you post more details about how you're creating the EPUB, and how much or little you know about (X)HTML and CSS, someone might be able to help advise on the best way to sort out these errors.
Thank you very much for that comprehensive response which must have taken you some time to write. Problem now solved and book published!
Brianigoe is offline   Reply With Quote