![]() |
#1 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Nov 2020
Device: ADE
|
EPUBCheck error
There are actually a whole series of errors, the first though I think is the cause of the rest:
Code:
ERROR OEBPS/content.opf - Error while parsing file: element "package" not allowed here; expected element "ns1:package" or "ns2:package" (with xmlns:ns1="http://openebook.org/namespaces/oeb-package/1.0/" xmlns:ns2="http://www.idpf.org/2007/opf") Code:
<package version="2.0" unique-identifier="unique-identifier" xmlns="http://www/idpf.org/2007/opf" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/"> |
![]() |
![]() |
![]() |
#2 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,319
Karma: 5568878
Join Date: Nov 2009
Device: many
|
Notice the difference between what they want and what you have:
They want namespace: http://www.idpf.org/2007/opf but your package tag has a typo. It defines a namespace: http://www/idpf.org/2007/opf So just fix the typo in your opf package tag to change: www/idpf.org to www.idpf.org |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,319
Karma: 5568878
Join Date: Nov 2009
Device: many
|
Also what version of Sigil are you using? That typo was found and fixed in the code that tries to auto fix the opf when it was missing the proper namespaces a while back.
|
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Nov 2020
Device: ADE
|
Thank you, that has sorted it out. I'm using Sigil 1.5.0, however the epub file was created using an older version of Sigil (not sure which).
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Epubcheck misses error | exaltedwombat | Sigil | 12 | 09-24-2019 05:02 PM |
Epubcheck: New Error under upgrade to Validator 4.0.2 | Phaedrus Wolfe | Conversion | 21 | 08-21-2017 11:04 AM |
Error epubcheck | Buble | ePub | 43 | 08-15-2014 02:53 AM |
ePubCheck error deciphering | thiefwriter | Calibre | 5 | 09-15-2011 08:37 PM |
Error on epubcheck | Brazz | ePub | 5 | 09-01-2011 04:17 AM |