![]() |
#1 |
Member
![]() Posts: 11
Karma: 10
Join Date: Nov 2013
Device: ipad
|
epub 3 validation errors
I have to supply a book as epub 3.
The book has no features that require epub 3, but the publisher (my client) was asked to supply it as epub 3 by a college that will issue to their students tablets with the textbooks preloaded. To my observation that epub 3 wan't necessary, my client responded "let's just give them what they specified". Wich, I suppose, is not unreasonable. I made up the job as epub 2, and it works fine and validates. I'm now trying to convert it to epub 3, and I don't really know what I'm doing, but have had some success. However, I'm left with seven validation errors, all in content.opf, but I can't find them. These are: Code:
ERROR: ... /content.opf(4,103): attribute "ns0:role" not allowed here; expected attribute "dir", "id" or "xml:lang" ERROR: ... /content.opf(4,103): attribute "ns0:file-as" not allowed here; expected attribute "dir", "id" or "xml:lang" ERROR: ... /content.opf(12,73): attribute "ns1:role" not allowed here; expected attribute "dir", "id" or "xml:lang" ERROR: ... /content.opf(16,78): attribute "ns2:scheme" not allowed here; expected attribute "id" ERROR: ... /content.opf(18,54): element "meta" not allowed here; expected element "manifest" ERROR: ... /content.opf(19,50): element "meta" not allowed here; expected element "manifest" ERROR: ... /content.opf(20,49): element "meta" not allowed here; expected element "manifest" Is this something I can solve without in-depth knowledge of epub 3? (I attache content.opf in case anyone wants to look at it.) |
![]() |
![]() |
![]() |
#2 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Well, there are 3 meta elements in between the metadata block and the manifest. Look at lines 11-14.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Member
![]() Posts: 11
Karma: 10
Join Date: Nov 2013
Device: ipad
|
Quote:
Can you explain the references to "ns0:role" etc.? These did in fact exist in the epub 2 version, but I deleted them. Nevertheless, the error still comes up. |
|
![]() |
![]() |
![]() |
#4 | |
Member
![]() Posts: 11
Karma: 10
Join Date: Nov 2013
Device: ipad
|
Quote:
When I rezipped the contents without Calibre, it validated fine. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Please help with ePub validation errors. | Kratos | ePub | 8 | 02-20-2015 02:45 PM |
Epub Validation Errors | adrienna | ePub | 7 | 11-22-2013 10:11 PM |
Epub validation errors | Newauthor | ePub | 38 | 08-01-2011 12:22 PM |
EPUB Validation errors | vhin3125 | Workshop | 1 | 04-01-2011 12:37 PM |