01-22-2018, 12:00 PM | #1 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jan 2018
Device: none
|
EPUB Validator Persistent Errors
I'm trying to validate a find layout EPUB and I keep getting the same two errors:
OPF-001 (ERROR) Message: There was an error when parsing the EPUB version: Version not found. RSC-005 (ERROR) Message: Error while parsing file 'The entity name must immediately follow the '&' in the entity reference.'. This is the beginning code in my .opf file: Code:
<?xml version="1.0" encoding="utf-8"?> <package xmlns="http://www.idpf.org/2007/opf" unique-identifier="BookID" version="2.0" > <metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf"> I'm really stumped and would be grateful if you could help. |
01-22-2018, 12:33 PM | #2 |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Code:
<?xml version='1.0' encoding='utf-8'?> <package xmlns="http://www.idpf.org/2007/opf" xmlns:svg="http://www.w3.org/2000/svg" unique-identifier="BookID" version="2.0"> <metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf"> |
Advert | |
|
01-22-2018, 11:42 PM | #3 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jan 2018
Device: none
|
|
01-23-2018, 03:07 AM | #4 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
The first message is most likely displayed because there are other syntax errors in the .opf file. Simply open and save it with Calibre Editor or Sigil to fix it.
Quote:
<p>a & b</b> instead of <p>a & b</b> Last edited by Doitsu; 01-23-2018 at 04:31 AM. |
|
01-24-2018, 10:32 AM | #5 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jan 2018
Device: none
|
Thank you, Doitsu.
I had ampersands in the middle of categories (eg Action & Adventure) in the BISAC categories. I hadn't thought they would affect the validation, but when I replaced them with & the two persistent errors went away (thank you). But in their place I had a long, long list of things the Validator didn't like in my pages, and in the opf file and the nav.html file. A huge list. None of it had turned up in the Validator reports before. I worked on the page errors, thinking I could resolve those more easily, but each time I fixed one, it would find something else wrong. I had to add a viewport setting, then I had to add a height and width to it. When I'd done that it said I had a fatal error on every page because the <head> tag wasn't closed with a </head> tag ... But it was there. Every page had a </head> tag at the end of the <head> section. I downloaded Sigil then, and opened the EPUB with that as you'd suggested. Sigil offered to fix errors and I chose yes. Then I saved that version and tried it in the epub validator. It returned a much shorter list of errors in the opf and nav.html files (no fatal errors listed). In the meantime I have no Idea if the other changes I made (viewport) were even necessary. |
Advert | |
|
01-24-2018, 11:03 AM | #6 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
I think if all the errors are only warnings then you're more likely to catch them all in one pass. It's also possible that different validators have different approaches. |
|
01-24-2018, 11:13 AM | #7 |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
Tags |
validation errors, version not found |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Epub validator errors / ePub 3 | 2manymovies | Workshop | 6 | 05-06-2017 09:42 AM |
Epub:type not allowed in epub validator | wDr | Editor | 0 | 07-01-2016 09:03 PM |
Errors Galore! Validator | oiver55 | Sigil | 32 | 04-16-2015 10:44 AM |
Clean conversion BUT many errors in Epub Validator | Peerie | Conversion | 3 | 12-29-2014 08:28 PM |
Epub Validator Errors for iBooks Producer | tcorsonk | ePub | 0 | 06-11-2014 05:10 PM |