![]() |
#1 |
Author
![]() 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 |
![]() |
![]() |
![]() |
#2 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
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"> Code:
<div style="clear: both"> |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Author from pBook days
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#4 |
EPUB designer
![]() ![]() 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. |
![]() |
![]() |
![]() |
#5 |
Author from pBook days
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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! |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,613
Karma: 6718541
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
|
|
![]() |
![]() |
![]() |
#7 | |
Author from pBook days
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 49
Karma: 10782
Join Date: Mar 2011
Location: Australia
Device: Kindle-3-Keyboard; 8" Android Tablet
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |