03-07-2019, 09:15 AM | #1 |
Member
Posts: 14
Karma: 10
Join Date: Feb 2019
Device: None
|
Html text not passing EpubCheck validation
I though the previous discussions on my ebook had solved my epub book errors, but on updating the epub version of my book via Smashwords Switch, the epubcheck tool (at http://validator.idpf.org/application/validate) failed my epub version giving me multiple errors (see attached screenshot). The four errors for each split html file are always the same, namely text, link, vlink and dir. I have included the code for split_001.html segment to show the code as written:
Code:
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Unknown</title> <meta name="GENERATOR" content="OpenOffice 4.1.6 (Win32)"/> <meta name="AUTHOR" content="op_client2"/> <meta name="CREATED" content="20190222;15380000"/> <meta name="CHANGEDBY" content="S Ve"/> <meta name="CHANGED" content="20190222;15380000"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <link href="../Styles/stylesheet.css" rel="stylesheet" type="text/css"/> <link href="../Styles/page_styles.css" rel="stylesheet" type="text/css"/> </head> <body lang="en-GB" text="#000000" link="#0563c1" vlink="#954f72" dir="LTR" class="calibre"> <h1 lang="en-US" class="western1" id="calibre_pb_0"></h1> <p lang="en-US" class="western2"> <i class="calibre7">To Patricia,</i></p> <p lang="en-US" class="western2"> <i class="calibre7">without her, the sky would be less blue and the Sun less bright.</i></p> </body> </html> Any help as to how to get an epub book uploaded without errors PLEASE! Thanks in advance (again), Andy |
03-07-2019, 09:21 AM | #2 |
Sigil Developer
Posts: 7,657
Karma: 5433388
Join Date: Nov 2009
Device: many
|
The vlink, text, and link attributes no longer part of html spec nor the xhtml spec. This should be done via css.
Sigil has nothing to do with this, it did not create these body attributes. These attributes should be removed and replaced with the appropriate CSS classes. |
Advert | |
|
03-07-2019, 09:23 AM | #3 |
Sigil Developer
Posts: 7,657
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Next time please post questions unrelated to Sigil in the Mobileread epub torum.
Thanks |
03-07-2019, 09:23 AM | #4 |
Grand Sorcerer
Posts: 27,553
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Sigil didn't create those attributes. Nor does Sigil automatically fix all errors for you. So "Sigil html text not passing" is a little misleading. I'm removing it.
The color attributes in the body tag aren't valid xhtml. Remove them and change them to styles Whoops! Kevin already dealt with this. Last edited by DiapDealer; 03-07-2019 at 09:45 AM. |
03-07-2019, 03:30 PM | #5 |
Member
Posts: 14
Karma: 10
Join Date: Feb 2019
Device: None
|
KevinH & DiapDealer,
Comments noted on Sigil and comments appreciated. Thanks, Andy |
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Some ePubs not passing Google validation | ptgb | Conversion | 1 | 01-10-2016 04:18 PM |
What exactly Epubcheck validation tool does? | kalees | ePub | 5 | 01-24-2014 11:36 AM |
ePubcheck 1.1/1.2 Validation line number | steventaylor | ePub | 3 | 08-08-2012 06:40 PM |
ePub validation in epubcheck 1.1 | islandcharlie | Conversion | 13 | 08-02-2011 09:28 PM |
Adding page breaks in Calibre breaks ePubcheck validation | bookraft | Conversion | 16 | 03-01-2011 01:23 PM |