Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
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
Old 12-01-2013, 03:36 AM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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.
eschwartz is offline   Reply With Quote
Advert
Old 12-02-2013, 09:32 AM   #3
gdutoit
Member
gdutoit began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Nov 2013
Device: ipad
Quote:
Originally Posted by eschwartz View Post
Well, there are 3 meta elements in between the metadata block and the manifest. Look at lines 11-14.
Ah, thanks! I didn't notice that </metadata> was sitting above these.

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.
gdutoit is offline   Reply With Quote
Old 12-02-2013, 11:56 AM   #4
gdutoit
Member
gdutoit began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Nov 2013
Device: ipad
Quote:
Originally Posted by gdutoit View Post
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.
I'm a half-wit ... I used Calibre to explode/rebuild the epub. Trouble is, the errors (for epbub 3 validation) were inserted by Calibre. After deleting the errors and rebuilding the epub, Calibre reinserted the same lines, generating the same errors.

When I rezipped the contents without Calibre, it validated fine.
gdutoit is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 09:50 AM.


MobileRead.com is a privately owned, operated and funded community.