Kindle Forum banner
1 - 7 of 7 Posts

·
Registered
Joined
·
25 Posts
Discussion Starter · #1 ·
Hello,

I have written a book using Scrivener and compiled it as an epub for Smashwords. However, when I submit i,I get validation errors. I ran the epub through http://validator.idpf.org/ and I get the following error message. I've taken a screenshot and put it on a google doc linked below.

https://docs.google.com/document/d/1zonhumRF65BcgBL09IfzXZPfs5nzM0tftmF1LLGpIXs/edit?usp=sharing

I don't know very much about the html coding that goes into an epub, so I'm not sure how to go about fixing the problem. Any help would be greatly appreciated.

Thanks,
Adam
 

·
Registered
Joined
·
25 Posts
Discussion Starter · #2 ·
I'd like to figure out how to fix this within scrivener and then compile a clean file. Not sure how to track it down, though. I compiled an html version of the book. Here's a screenshot.

https://docs.google.com/document/d/1QIdiBzOTRCUSCLNliRwGWMWa0asF-ZdKmOL9O4teylU/edit?usp=sharing

Line 49-52 have the "li" tag
Line 62-63 have the "ul" tag

They both appear in the "head" portion of the code. I'm not even close to a coder so I don't know how to figure out the problem, fix it in scrivener and then compile an error free epub.

Can't seem to find an answer!

-Adam
 

·
Registered
Joined
·
726 Posts
If Scrivener compiled that EPUB, then Srivener is at fault for the coding.  Maybe Literature and Latte can help you out if you tell them about it.  Or at least they can fix it in the next version.  I also discovered a bug in their ePub output a couple years ago.  Unlike some outfits, L&L was were glad to know about it and eager to fix it, so I would encourage you to mention this one to them as well. 
 

·
Registered
Joined
·
1,753 Posts
Shimmering is right. The problem is probably in the file body18.xhtml.

You can find that file as follows:

Rename you book from .epub to .zip.  (in other words, if your book is called "mybook.epub", then rename it to "mybook.zip". 
Unzip it (open it).
There will be a folder called OPS or OEBPS. Inside that folder are the html files. Go have a look at the one named body18.html. There is something wrong with it, and epubcheck told you what line.

Also on your fragment of the styles for ul.ul2, there is this green squiggle on line 62. What's that?
 

·
Registered
Joined
·
25 Posts
Discussion Starter · #7 ·
Hello All,

Thank you for your help on this.  It turns out I had actually cut and pasted from Word.  I used "The Unarchiver" to look at the html files and found the offending lines.  Then, I went back into scrivener and cut out that text retyped it, re-compiled and it all checked out.

Thanks so much!

-Adam
 
1 - 7 of 7 Posts
Top