12-02-2010, 08:29 PM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Dec 2010
Device: none
|
Problems with ePub validation
I'm looking for advice on a couple of errors I'm seeing. One is " exists in the zip file, but is not declared in the OPF file" but the files in question Are declared and I've checked, rechecked, and even renamed some files in both the opf and nxc files and still they show up as errors. Similar errors for (mostly) the same files is "referenced resource exists, but not declared in the OPF file" - how does this happen?
Another is "hyperlink to resource outside spine" but these are links to files within the epub. I read elsewhere on this forum that "id" works as links within the epub. I tried that and got "elements must consist of well-formed character data or markup." Is something more needed? I put /> where normally there would be </a>. One file gives me "text not allowed here" but it is xhtml the same as all the others (this is an epub with many xhtml files). Thanks for any assistance with this. I thought I had it figured out before epubcheck! |
12-03-2010, 04:55 AM | #2 | ||||
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Quote:
Quote:
Code:
<p id="first">This is a paragraph with an "id" attribute, so we can link to it elsewhere.</p> <p>This is a second paragraph with a <a href="#first">link</a> to the first paragraph</p> Quote:
|
||||
Advert | |
|
12-03-2010, 03:20 PM | #3 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Did you try Flightcrew as validation tool? It usually gives better info. The message "referenced resource exists, but not declared in the OPF file" can point to a reference of a file which is not present in the OPF or even the epub. Also keep the case in mind with the files. Do not change upper- and lowercase between references.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ePub validation problems | robcub | ePub | 12 | 02-04-2011 05:04 AM |
ePub Validation Problem | rlarrett | ePub | 14 | 10-07-2010 01:06 AM |
ePub Validation Error | mrbillb | ePub | 6 | 09-28-2010 02:14 PM |
Epub validation problem | silentobserver | ePub | 3 | 08-16-2010 12:51 AM |
Epub Validation Problems | crestfalleen | Calibre | 6 | 08-02-2010 09:43 PM |