06-10-2017, 09:13 PM | #1 |
Banned
Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
|
container.xml problems
NOTE: This issue has been solved.
I don't know how the container.xml error popped up in the first place, but when I was first trying to fix the problem, I created a file named container.xml or container.xhmtl in the Text files folder, which I later forgot about. I simply created a new epub and imported all my files EXCEPT that one. I no longer get an error message and, even better, there's no longer a container.xml file anywhere in my epub. * * * * * One of my epubs got zapped somehow. It no longer displayed a cover image, and I couldn't open it in iBooks. I traced the problem to a file I never even knew existed - container.xml. I thought I had fixed it by simply creating a new container.xml file, but that just created a new problem(s). So I created a brand new epub and imported my text files, style sheets and images from the original. When I validate it, I got a warning that container.xml should have the extension .xhtml. I changed it to .xhtml, but that only spawned a new error. From the pages I've Googled, it looks like it's supposed to have the extension .xml, so I changed it back. I now get a warning that container.xml should be container.xhtml, followed by the following error: Error Code RSC-005: Error while parsing file 'element "container" not allowed here; expected the element end-tag, text or element "ns1:switch"... (etc., etc.) The error is on line 8, which is the second line below... <meta name="Sigil version" content="0.9.8" /> <meta name="cover" content="cover.jpg" /> <meta property="dcterms:modified">2017-06-10T17:40:25Z</meta> I noticed that the third line listed above ends with... </meta> ...while the other two lines end with... /> So I fiddled with that but didn't fix anything. Does anyone know what the solution is? I'm also still trying to figure out why container.xml even exists in this project. There's no file named container.xml in my working epubs. When I create a new epub, the folder Misc is empty. So where did container.xml come from? Is there a way to simply get rid of it? Deleting it only causes problems, but maybe there's some associated code in another file I need to delete. Googling for "RSC-005" turned up some discussions that suggest...well, they're hard to understand. There are some suggestions that the problem is with Pagina epub checker; in other words, it may not be a valid error at all. But that still doesn't explain why container.xml even exists. Other references offer fixes for specific problems. I'm confused! Last edited by SigilBear; 06-11-2017 at 05:55 PM. |
06-11-2017, 07:58 PM | #2 |
Grand Sorcerer
Posts: 45,012
Karma: 55647515
Join Date: Jan 2007
Location: Peru
Device: Kindle: Oasis 3, Voyage WiFi; Kobo: Libra 2, Aura One
|
Moved out of the Writers' Forum, which is not for programming code issues.
Don (Moderator) |
Advert | |
|
06-11-2017, 08:24 PM | #3 | |
Banned
Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
|
Quote:
There should be a forum named "Coding Issues." |
|
06-11-2017, 09:01 PM | #4 |
null operator (he/him)
Posts: 20,952
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
I moved it from the Calibre Editor to the Sigil forum. But on reading your response to Dr. Drib I should have perhaps moved it to the EPUB forum.
I'll leave it up to the Sigil mods to move it on. BR |
06-11-2017, 09:43 PM | #5 | |
Grand Sorcerer
Posts: 27,962
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
|
|
Advert | |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
missing container.xml error | George H | Editor | 5 | 11-26-2022 09:43 AM |
Missing Container.xml File Error | jackibar | Sigil | 17 | 06-17-2017 02:50 PM |
container.xml resource is missing | masheen | ePub | 2 | 07-13-2011 10:36 PM |
NEED HELP!!! - META-INF/container.xml is missing | soulmenj | ePub | 2 | 07-12-2011 10:49 PM |
IDPF - New digital book standard released: OEBPS (XML format) & OCF (container) | CommanderROR | News | 13 | 11-04-2006 08:49 AM |