View Single Post
Old 12-01-2013, 03:09 AM   #1
gdutoit
Member
gdutoit began at the beginning.
 
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"
As far as I can see, none of this stuff is in my content.opf.

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.)
Attached Files
File Type: opf content.opf (7.2 KB, 382 views)
gdutoit is offline   Reply With Quote