![]() |
#1 | |
Member
![]() Posts: 13
Karma: 10
Join Date: Apr 2020
Device: None
|
Validator saying .HTML files should be named .XHTML
Gday, I'm getting close to publishing my book (a DOCX converted to EPUB with Calibre) and have used a couple of validators (https://epubcheck.mebooks.co.nz/ and the offline Pagina). Both are returning an error (74, actually) which says:
Quote:
I've checked the EPUB in the Kindle Previewer and sideloaded it to ibooks (on my ipad) and Kobo and it looks great. I'd be grateful if someone could advise whether this error is acceptable and if not, what I have to do with Calibre to rectify the error. Thanks and Cheers, Al |
|
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,072
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
It is recommended, though not required, that the component files that make up an EPUB use standard file extensions. Content in an EPUB is in XHTML format and so should have the file extension .xhtml. You can fix this using the calibre editor.
|
![]() |
![]() |
![]() |
#3 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,752
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
You should be running the epubcheck Calibre editor plugin instead on using online validation. It's more secure and much easier to use.
|
![]() |
![]() |
![]() |
#4 |
Member
![]() Posts: 13
Karma: 10
Join Date: Apr 2020
Device: None
|
Thanks very much, people.
@JHowell, done. Is there a way to force Calibre to do name the files xhtml automatically? @JSWolf, installed the plugin OK, and after I changed the filenames, my book got a clean bill of health. I did have second thoughts about that checking site. If the book "escapes", I'll blame the Kiwis! |
![]() |
![]() |
![]() |
#5 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,752
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#6 |
Member
![]() Posts: 13
Karma: 10
Join Date: Apr 2020
Device: None
|
Thanks Jon.
|
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,072
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
|
![]() |
![]() |
![]() |
#8 |
Member
![]() Posts: 13
Karma: 10
Join Date: Apr 2020
Device: None
|
Thanks JHowell.
|
![]() |
![]() |
![]() |
#9 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,587
Karma: 14328510
Join Date: Nov 2019
Device: none
|
In Sigil you can rename the html files to xhtml; ctl click on each one you want to rename in its Book Browser then right click and select regex rename.
If you'd rather not select them individually you could select all of the books and then instead of using html for the first box use \.html, (and .xhtml for the second box). I use Sigil for my epub editing but it and Calibre's editor are a toss-up feature-wise. |
![]() |
![]() |
![]() |
#10 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,190
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Epub Validator nav.xhtml incomplete ol missing | Akasashasha | ePub | 26 | 12-22-2017 08:17 AM |
Some files.html & toc.xhtml (also Cover.xhtml) | chaot | Workshop | 23 | 02-13-2017 12:20 PM |
InDesign - ePub export html files instead of xhtml | csavory | ePub | 5 | 02-06-2015 01:47 AM |
HTML Page to EPUB Named Anchor Problem | gknitz | Conversion | 11 | 10-02-2013 11:00 PM |
XHTML files not listed, only one HTML file | SmartyGuy | Sigil | 6 | 06-21-2011 12:32 PM |