![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jul 2013
Location: Boston area
Device: none
|
META-INF/container error
Hi all. I'm trying to create an ePub from scratch (well, sort of from scratch) for a work project. I keep getting the same error message when I try to validate it.
Here's the error message: No rootfile with media type 'application/oebps-package+xml' Here are the guts of my META-INF/container.xml file: <rootfiles> <rootfile full-path="OEBPS/package.opf" media-type="application/oebps-package+xhtml+xml"/> </rootfiles> </container> My OPF file is named "package.opf". I've compared my META-INF/container.xml file to other ePubs that I know validate and function correctly, and it seems to match. BUT clearly something is amiss! Any ideas would be greatly appreciated. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
shouldn't it be:
<rootfile full-path="OEBPS/package.opf" media-type="application/oebps-package+xml"/> Is the case of the filenames and folder names ok? Dale |
![]() |
![]() |
![]() |
#3 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 51
Karma: 29994
Join Date: Nov 2011
Location: Manila, Philippines
Device: iPad 2 & Nexus 7
|
You might want to check if your "package.opf" is inside the "OEBPS" folder only. If it's inside another folder you need to add that "sub-folder" to the declaration.
|
![]() |
![]() |
![]() |
#4 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
As Dale said, you have:
application/oebps-package+xhtml+xml and the error message says it should be: application/oebps-package+xml I would start there. |
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jul 2013
Location: Boston area
Device: none
|
Thanks to all who replied!
When I delete "+xhtml" from the "application/oebps-package+xml" path and then try to validate the ePub, I get about 30 error messages. I originally included "xhtml" because most of the files in the OEBPS folder are XHTML, not XML. Also, the "package.opf" file is in the OEBPS folder so I don't think that's the problem. |
![]() |
![]() |
![]() |
#6 | ||
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
And XHTML is XML of course. Looking weird perhaps, but still XML.
|
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
|
![]() |
![]() |
![]() |
#9 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,285
Karma: 78869092
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
|
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
error updating meta data | Sharkslayer | Library Management | 1 | 04-01-2013 05:48 AM |
META-INF folder not displayed | Dan__ | Sigil | 2 | 02-26-2013 12:33 PM |
NEED HELP!!! - META-INF/container.xml is missing | soulmenj | ePub | 2 | 07-12-2011 10:49 PM |
Add xml in META-INF | Sylver | Sigil | 5 | 04-26-2011 03:17 AM |
error when editing meta data | tom233 | Calibre | 1 | 10-06-2010 03:28 AM |