Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 07-06-2011, 10:47 AM   #1
Ethan Holmes
Author
Ethan Holmes began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2011
Device: None
Ebook Formatting Errors?

Does anyone know what the following gobbledygook means. It is the only message I received upon running my novel through Smashwords' recommended epub check. Suddenly after a year of sales Apple says my book is not good enough in its current epub format. Huh?

This is what I received:
ERROR: earths-blood.epub/tmp_af7e6e36650d4b06688430391833559a_cJg63I.ch.fix ed.fc.tidied.stylehacked.xfixed_split_000.html(18) : attribute "clear" not allowed here; expected attribute "class", "id", "style" or "title"

Thanks for any aid. EH
Ethan Holmes is offline   Reply With Quote
Old 07-06-2011, 11:27 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
In one in of the HTML files that form the ePUB, you have some element with a "clear" attribute, which is not allowed by the specs. You probably have something like:

Code:
<div clear="both">
and it should have been:

Code:
<div style="clear: both">
or similar.
Jellby is offline   Reply With Quote
Old 09-04-2011, 06:19 AM   #3
lindsayw
Author from pBook days
lindsayw is clearly one to watchlindsayw is clearly one to watchlindsayw is clearly one to watchlindsayw is clearly one to watchlindsayw is clearly one to watchlindsayw is clearly one to watchlindsayw is clearly one to watchlindsayw is clearly one to watchlindsayw is clearly one to watchlindsayw is clearly one to watchlindsayw is clearly one to watch
 
lindsayw's Avatar
 
Posts: 49
Karma: 10782
Join Date: Mar 2011
Location: Australia
Device: Kindle-3-Keyboard; 8" Android Tablet
I have had a similar error report for one of my books, comprising separate xhtml chapter files, all identical in xhtml structure, but only one chapter file from one book throws the error. I have examined it until my eyes are popping out, but there are no instances of attribute "clear" being used anywhere, either in a <br /> tag (old html allowed that) nor in any <div> or <span> tags. The error message specifies 5 different lines in my one errant chapter file (all identical to similar lines in hundreds of other chapter files), and I am suspicious because all lines include a <br /> tag, and I have read somewhere that a <!DOCTYPE... declaration can sometimes cause this error because of the DTD part of the declaration. It can sometimes assume that "clear" is a default attribute for some tag (probably the <div> tag). But all my <!DOCTYPE... declarations are also identical. It's a puzzler! It seems to be assuming that any <br /> tag includes a "clear" attribute, when none of them do.
lindsayw is offline   Reply With Quote
Old 09-04-2011, 02:34 PM   #4
marytg
EPUB designer
marytg doesn't littermarytg doesn't litter
 
Posts: 13
Karma: 180
Join Date: Apr 2011
Device: Nook Color
Lindsay,
When I get an error that I can't find, I open the xhtml file with Google Chrome. It will stop on the line with the error and display which line it is on. It also reports the column but I don't find that to be useful; it's misleading in most cases.

I recognize your code as being created by Smashwords. You might find this post on my site to be interesting. Why Doesn't Smashwords Accept EPUB Files?

Last edited by marytg; 09-04-2011 at 02:36 PM.
marytg is offline   Reply With Quote
Old 09-04-2011, 06:52 PM   #5
lindsayw
Author from pBook days
lindsayw is clearly one to watchlindsayw is clearly one to watchlindsayw is clearly one to watchlindsayw is clearly one to watchlindsayw is clearly one to watchlindsayw is clearly one to watchlindsayw is clearly one to watchlindsayw is clearly one to watchlindsayw is clearly one to watchlindsayw is clearly one to watchlindsayw is clearly one to watch
 
lindsayw's Avatar
 
Posts: 49
Karma: 10782
Join Date: Mar 2011
Location: Australia
Device: Kindle-3-Keyboard; 8" Android Tablet
Hi marytg,
No, I'm an old fogey from the cobweb-ridden past, so I wrote all my stuff in Word, but did not use Smashwords or any other conversion system. I cut-&-pasted into an html editor then hand-coded the html because I have been doing that for decades... thought I could do it easily. Wrong! Xhtml came along at just the wrong time for me, so I had to upgrade all my old-fashioned html into xhtml and therein lay all my problems. I made mistakes (Gasp! Horror!).
It's red-face time on the reported error, too... after posting that the <!DOCTYPE... statement could cause that error I checked my own code for that particular chapter, finding it perfect. BUT... the version of that file inside the ePub was still an older version with a slightly different <!DOCTYPE> declaration so I can now report that this was definitely the cause of the error message. So all 9 of my novels are now error-free and I can get back to writing #10... you can be sure that the xhtml conversion process for that one will be undertaken with a lot more care!
lindsayw is offline   Reply With Quote
Old 09-04-2011, 07:00 PM   #6
dwig
Wizard
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 1,613
Karma: 6718479
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
Quote:
Originally Posted by lindsayw View Post
... It's a puzzler! It seems to be assuming that any <br /> tag includes a "clear" attribute, when none of them do.
Have you check all of the Styles, both in the HTML document and in any and all of the CSS files? The "clear" attrib could be there.
dwig is offline   Reply With Quote
Old 09-04-2011, 07:40 PM   #7
lindsayw
Author from pBook days
lindsayw is clearly one to watchlindsayw is clearly one to watchlindsayw is clearly one to watchlindsayw is clearly one to watchlindsayw is clearly one to watchlindsayw is clearly one to watchlindsayw is clearly one to watchlindsayw is clearly one to watchlindsayw is clearly one to watchlindsayw is clearly one to watchlindsayw is clearly one to watch
 
lindsayw's Avatar
 
Posts: 49
Karma: 10782
Join Date: Mar 2011
Location: Australia
Device: Kindle-3-Keyboard; 8" Android Tablet
Quote:
Have you check all of the Styles, both in the HTML document and in any and all of the CSS files?
Yes, I have a hand-coded style.css file and the error was definitely not there! I am fussy about style. The error was found elsewhere (see previous post).
lindsayw is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sigil Formatting errors? OrganicJerk Sigil 5 02-16-2011 08:06 PM
Formatting errors... book thumbnail is random pherc Calibre 1 01-14-2011 09:17 PM
Formatting errors in Mobi output agriainc Calibre 3 08-22-2010 10:16 AM
Errors caused by ebook being viewed speakingtohe Calibre 2 05-11-2010 06:28 PM
eBook download errors - who to contact? ATimson ePub 6 02-17-2010 03:52 PM


All times are GMT -4. The time now is 10:12 PM.


MobileRead.com is a privately owned, operated and funded community.