![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,146
Karma: 11174187
Join Date: Jan 2011
Device: Sony 350, K3-3G, K4SO, KPW
|
validating epub fails - how do I correct?
when I go to validate my epub (created with Scrivener, edited in Sigil) I get the following errors, and I have no idea what they mean or how to correct them. Help?
WARNING OEBPS/toc.ncx - - meta@dtb:uid content '3fab09d2-6f70-44d8-80c4-4ebfcca8d9ba' should conform to unique-identifier in content.opf: 'urn:uuid:3fab09d2-6f70-44d8-80c4-4ebfcca8d9ba' ERROR OEBPS/toc.ncx 24 44 assertion failed: playOrder sequence has gaps ERROR OEBPS/Text/contents.xhtml 13 105 non-standard stylesheet resource 'OEBPS/Misc/page-template.xpgt' of type 'application/adobe-page-template+xml'. A fallback must be specified. |
![]() |
![]() |
![]() |
#2 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,012
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The first thing to do is remove /page-template.xpgt and any reference to it. You don't need it.
Post the headers of your toc.ncx and content.opf so we can have a look and see what needs to be done. The error means that the ID in the ncx and opf do not match. |
![]() |
![]() |
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,146
Karma: 11174187
Join Date: Jan 2011
Device: Sony 350, K3-3G, K4SO, KPW
|
Here's the content.opf
Spoiler:
Here's the TOC.ncx. Spoiler:
|
![]() |
![]() |
![]() |
#4 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,012
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Oh, one other error I forgot to mention. The ToC gaps is because the playorder in the ncx file has numerical gap(s). That requires renumbering.
Change <meta content="c22d9e01-0d3c-4009-82df-3287f82ac7eb" name="dtb:uid"/> (in ncx) to <meta content="urn:uuid:c22d9e01-0d3c-4009-82df-3287f82ac7eb" name="dtb:uid"/> Now the unique-identifiers are the same. Last edited by JSWolf; 06-12-2013 at 12:21 PM. |
![]() |
![]() |
![]() |
#5 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,146
Karma: 11174187
Join Date: Jan 2011
Device: Sony 350, K3-3G, K4SO, KPW
|
Quote:
ok, so I've made all these changes, and this is what I get when I try to validate: WARNING OEBPS/toc.ncx - - meta@dtb:uid content 'c22d9e01-0d3c-4009-82df-3287f82ac7eb' should conform to unique-identifier in content.opf: 'urn:uuid:c22d9e01-0d3c-4009-82df-3287f82ac7eb' here's the toc.ncx Spoiler:
Here's the content.opf Spoiler:
Last edited by BeccaPrice; 06-12-2013 at 12:33 PM. |
|
![]() |
![]() |
![]() |
#6 | |||
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,012
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Quote:
Quote:
|
|||
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,146
Karma: 11174187
Join Date: Jan 2011
Device: Sony 350, K3-3G, K4SO, KPW
|
changes made.
still getting this error: WARNING OEBPS/toc.ncx - - meta@dtb:uid content 'null' should conform to unique-identifier in content.opf: 'urn:uuid:c22d9e01-0d3c-4009-82df-3287f82ac7eb' btw, Jon, I really appreciate your being patient with me and helping me through this. |
![]() |
![]() |
![]() |
#8 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,012
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Please post your two ID lines from the OPF and the NCX. I want to double check if there is any error in there now.
|
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,146
Karma: 11174187
Join Date: Jan 2011
Device: Sony 350, K3-3G, K4SO, KPW
|
toc.ncx:
Spoiler:
contents.opf Spoiler:
This shows you how much I don't know what I'm doing - I wasn't at all sure what exactly you needed from these two files, so I gave you the whole things. |
![]() |
![]() |
![]() |
#10 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,012
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I just took the OPF and NCX of an eBook I'm fixing up and dropped in your eBook's ID and it validates.
OPF: Spoiler:
NCX: Spoiler:
Last edited by JSWolf; 06-12-2013 at 12:57 PM. |
![]() |
![]() |
![]() |
#11 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,012
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Here's how to fix this in the NCX.
<meta content="urn:uuid:c22d9e01-0d3c-4009-82df-3287f82ac7eb" name="dtb:depth"/> should be... <meta content="urn:uuid:c22d9e01-0d3c-4009-82df-3287f82ac7eb" name="dtb:uid"/> Somehow you've changed dtb:uid to dtb:depth and that's what is causing the error. |
![]() |
![]() |
![]() |
#12 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,146
Karma: 11174187
Join Date: Jan 2011
Device: Sony 350, K3-3G, K4SO, KPW
|
Hurray! now it validates!
can you help me with this one from another epub, now? WARNING OEBPS/toc.ncx - - meta@dtb:uid content '648c1161-8638-4c6b-99e2-524e09ee80d1' should conform to unique-identifier in content.opf: 'urn:uuid:648c1161-8638-4c6b-99e2-524e09ee80d1' toc.nix for that one: Spoiler:
content.opf Spoiler:
and how do I avoid this warning in other books where I need to modify the toc.ncx and contents files? I can't go running to you, Jon, every time I want to get a new book out. Last edited by BeccaPrice; 06-12-2013 at 01:15 PM. |
![]() |
![]() |
![]() |
#13 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,012
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
This is from the the OPF.
<dc:identifier id="PrimaryID">urn:uuid:648c1161-8638-4c6b-99e2-524e09ee80d1</dc:identifier> This is from the NCX <meta content="648c1161-8638-4c6b-99e2-524e09ee80d1" name="dtb:uid"/> I'll show you how to fix this... Look at the line from the OPF. Copy all that stuff between >< (urn:uuid:648c1161-8638-4c6b-99e2-524e09ee80d1). Look at the line from the NCX. Replace all that stuff between "" (648c1161-8638-4c6b-99e2-524e09ee80d1) with the stuff from the OPF (but keep the quotes) and it will be fixed. You should be able to do that whenever you come up against this sort of error. I'm hoping this isn't confusing. |
![]() |
![]() |
![]() |
#14 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,146
Karma: 11174187
Join Date: Jan 2011
Device: Sony 350, K3-3G, K4SO, KPW
|
qrugh - re-validated, got another warning.
trying to fix this one on my own. Let's see how much trouble I get into now! btw, I've bookmarked this thread, to remind me of what I need to do when I edit the ncx and contents.opf files ETA: Ha! I did it. Thanks to your expert advice, Jon, I now know how to handle at least these validation errors. Last edited by BeccaPrice; 06-12-2013 at 01:50 PM. Reason: eta: Ha! I did it! |
![]() |
![]() |
![]() |
#15 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,012
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
<dc:title>This is a test</dc:title>
<dc:language>en</dc:language> These go in the header of the OPF. Happy to help. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Validating epub returns warning | writerkit | Conversion | 2 | 03-30-2013 02:35 AM |
koboish: Script that convert your epub to a kepub.epub with the correct bookcover !! | the_m | Kobo Reader | 4 | 01-24-2013 10:01 PM |
Issues validating EPUB for iPad | godsmac | Calibre | 13 | 06-26-2011 09:02 PM |
ePub books validating in French or English for the iBookStore | lavomat | Introduce Yourself | 8 | 12-25-2010 08:39 AM |