Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 07-10-2026, 02:23 PM   #1
jtweeks
Junior Member
jtweeks began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Dec 2021
Location: South Carolina
Device: ipad
opf:meta... change not accepted by Sigil

An epub upload to Google Play e-reader is failing.

I interpret the epubcheck error message (below) to require changing "meta..." entries to "opf:meta..." in the OEBPS/content.opf file.

When I try to change the "meta..." entries in the OEBPS/content.opf folder to "opf:meta..." and then run the "Well-formed Check - F7" the "opf:meta" changes revert back to "meta...".

Am I misinterpreting this error message? Perhaps there are other required changes to this file?

The epubcheck error message:

ERROR(RSC-005): ESV_Study_Bible.epub/OEBPS/content.opf(16,57): Error while parsing file: element "meta" not allowed anywhere; expected the element end-tag or element "dc:contributor", "dc:coverage", "dc:creator", "dc:date", "dc:description", "dc:format", "dc:identifier", "dc:language", "dc:publisher", "dc:relation", "dc:rights", "dc:source", "dc:subject", "dc:title", "dc:type", "opf:link" or "opf:meta"

The OEBPS/content.opf contains:

<metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf">
<dc:title>ESV® Study Bible</dc:title>
<dc:creator>Crossway</dc:creator>
<meta property="role" refines="creator" scheme="marc:relators">pbl</meta>
<dc:language>en-us</dc:language>
<dc:identifier id="BookId">9781433518874-2013-11</dc:identifier>
<dc:identifier id="ISBN">urn:isbn:9781433518874</dc:identifier>
<dc:publisher>Crossway</dc:publisher>
<dc:subject>Spiritual Religion</dc:subject>
<dc:description>The ... resources.</dc:description>
<meta name="Sigil version" content="2.6.0"/>
<meta property="dcterms:modified">2026-07-10T13:23:35Z</meta>

Last edited by DiapDealer; 07-10-2026 at 02:51 PM.
jtweeks is offline   Reply With Quote
Old 07-10-2026, 03:30 PM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 29,578
Karma: 212299010
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
What's your package tag look like near the top of the content.opf file?
DiapDealer is offline   Reply With Quote
Advert
Old 07-10-2026, 03:56 PM   #3
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,783
Karma: 7000000
Join Date: Nov 2009
Device: many
Could it be the older self-closing meta tag with name and contents?
KevinH is online now   Reply With Quote
Old 07-10-2026, 03:59 PM   #4
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,783
Karma: 7000000
Join Date: Nov 2009
Device: many
Oh I see, ... they are declaring the opf prefix on the metadata tag itself. Normally the meta tags do not need an opf prefix when it is defined in the package tag as the default namespace (no prefix required).

Just removing that opf prefix namespace from the metadata tag itself should do the trick.

Sigil's default package tag should look like:

Code:
<package version="3.0" unique-identifier="BookId" xmlns="http://www.idpf.org/2007/opf">
Notice the opf namespace is the default namespace which does not use the opf: prefix.

Last edited by KevinH; 07-10-2026 at 07:11 PM.
KevinH is online now   Reply With Quote
Old Yesterday, 09:37 AM   #5
jtweeks
Junior Member
jtweeks began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Dec 2021
Location: South Carolina
Device: ipad
DiapDealer - I believe this is what you requested:
<package version="3.0" unique-identifier="BookId" prefix="ibooks: http://vocabulary.itunes.apple.com/rdf/ibooks/vocabulary-extensions-1.0/" xml:lang="en" xmlns="http://www.idpf.org/2007/opf">
jtweeks is offline   Reply With Quote
Advert
Old Yesterday, 10:29 AM   #6
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 29,578
Karma: 212299010
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by KevinH View Post
Just removing that opf prefix namespace from the metadata tag itself should do the trick.
But our default epub3 opf file includes the opf prefix namespace in the metadata tag (as well as the namespace in the package tag).

I can't get this error to happen even if I directly copy the metadata from the first post into an epub 3. I'm beginning to think there might be an invisible character messing things up somewhere.

The meta refine is incorrect in the OP, but that still doesn't trigger the error they're getting.

Last edited by DiapDealer; Yesterday at 12:46 PM.
DiapDealer is offline   Reply With Quote
Old Yesterday, 11:51 AM   #7
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,783
Karma: 7000000
Join Date: Nov 2009
Device: many
The package tag declares the tags in this file are in the opf namespace with no prefix needed.

In his metadata tag he has added that same namespace as needing an opf prefix. Just removing that opf namespace from the metadata tag should be enough for any decent xml parser.

And yes you are right there could another cause but my guess is that validators xml processor is just confused by it.

Our epub3 default opf lookslike this:

Code:
static const QString TEMPLATE3_TEXT =
    "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
    "<package version=\"3.0\" unique-identifier=\"BookId\" xmlns=\"http://www.idpf.org/2007/opf\">\n\n"
    "  <metadata xmlns:dc=\"http://purl.org/dc/elements/1.1/\">\n"
    "    <dc:identifier id=\"BookId\">urn:uuid:%1</dc:identifier>\n"
    "    <dc:language>%2</dc:language>\n"
    "    <dc:title>%3</dc:title>\n"
    "    <meta property=\"dcterms:modified\">%4</meta>\n"
    "  </metadata>\n\n"
    "  <manifest>\n"
    "  </manifest>\n\n"
    "  <spine>\n"
    "  </spine>\n\n"
    "</package>";
Notice the metadata tag only adds the dc namespace with the dc: prefix. The opf: prefix is not needed as it is the default.

Last edited by KevinH; Yesterday at 11:55 AM.
KevinH is online now   Reply With Quote
Old Yesterday, 12:52 PM   #8
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 29,578
Karma: 212299010
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
His metadata tag is the same as what I see when I open a new, empty epub3 in Sigil. The top of my opf looks like this:

Code:
<?xml version="1.0" encoding="utf-8"?>
<package version="3.0" unique-identifier="BookId" xmlns="http://www.idpf.org/2007/opf">
  <metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf">
That is what I get on Windows and Linux when I open a brand new empty epub3. ???

For what it's worth, the EpubCheck plugin in Sigil doesn't seem to care whether the xmlns:opf="http://www.idpf.org/2007/opf"is in the metadata tag or not. But I am curious what might be putting it there if it's not part of Sigil's default opf for an epub3.

Last edited by DiapDealer; Yesterday at 01:07 PM.
DiapDealer is offline   Reply With Quote
Old Yesterday, 01:09 PM   #9
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,783
Karma: 7000000
Join Date: Nov 2009
Device: many
Huh? That is strange. The entire opf is in the opf xml namespace so no prefix is needed or used. No idea where it gets added to the metadata tag. It must be someplace.
I will try to track down where that is added and why.
KevinH is online now   Reply With Quote
Old Yesterday, 01:29 PM   #10
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,783
Karma: 7000000
Join Date: Nov 2009
Device: many
Here is where it gets unconditionally added:

https://github.com/Sigil-Ebook/Sigil...arser.cpp#L442

For epub3, this should not be needed. But every time the opf is modified it is parsed and that damn ns is added to the metadata tag. It should not make any differece to things (it just means opf: prefixed versions and non-prefixed versions should be recognized inside metadata but that is what I fear is upsetting the validator in this case.

But that is just a guess. We should probably make that line be conditioned on the package version, epub2 vs epub3. Or better yet change it completely to always add the dc namespace.

I am just unsure why this is causing any errors at all. And epubcheck is okay with it. Sigil's opf parser will always serialize to its simplest form (not using prefixed namespaces unless required).

So strange.

Last edited by KevinH; Yesterday at 01:38 PM.
KevinH is online now   Reply With Quote
Old Yesterday, 03:28 PM   #11
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 29,578
Karma: 212299010
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I don't think any of this is causing the epubcheck error the OP is seeing. I've recreated their package and metadata section of the opf (using the data they provided) using Sigil's default epub3, and the only opf error that epubcheck reports is about the meta refine not pointing to a valid entry.

I'm also not entirely sure what is meant by "An epub upload to Google Play e-reader is failing."

Last edited by DiapDealer; Yesterday at 03:33 PM.
DiapDealer is offline   Reply With Quote
Old Yesterday, 03:39 PM   #12
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 29,578
Karma: 212299010
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I'm back to your initial suggestion:

Quote:
Originally Posted by KevinH View Post
Could it be the older self-closing meta tag with name and contents?
Current Sigil and epubcheck don't flag the Sigil version entry as an error, but wasn't there an older version of epubcheck that did?

I can't imagine why it would prevent an epub from being readable by Google Play Books, but maybe they should just try removing that entry and see if it allows the book to be read. That's about all I have. *shrug*
DiapDealer is offline   Reply With Quote
Old Yesterday, 04:14 PM   #13
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,783
Karma: 7000000
Join Date: Nov 2009
Device: many
But the older epub2 style meta tag is technically to be completely ignored under the epub3 spec. It is not an error, at least not according to the spec at all.
KevinH is online now   Reply With Quote
Old Yesterday, 04:20 PM   #14
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 29,578
Karma: 212299010
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by KevinH View Post
But the older epub2 style meta tag is technically to be completely ignored under the epub3 spec. It is not an error, at least not according to the spec at all.
I agree. But I thought we'd had several "that's not supposed to be an error" things in EpubCheck that got corrected in later versions. I'm wondering if the version of epubcheck being used by the OP might be older and buggier. And it certainly wouldn't be the first time an epub3 rendering engine barfed on something it wasn't supposed to barf on.

But without being able to recreate the error with the data given, I'm just grasping at straws here.
DiapDealer is offline   Reply With Quote
Old Yesterday, 04:35 PM   #15
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,783
Karma: 7000000
Join Date: Nov 2009
Device: many
Hmm ... could be. Google Play will try to validate an epub3 you upload to it and parse errors will cause it to stop uploading.

What we really need is the real full output of epubcheck on that epub just in case there are other parse errors.

As Sigil simplifying the OPF is completely correct xml that epubcheck has never had an issue with.

Last edited by KevinH; Yesterday at 06:44 PM.
KevinH is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
avoiding Sigil's meta in content.opf sbin Sigil 25 01-08-2016 03:51 PM
Embedding OPF meta-data for iBooks in Calibre Guido Henkel Conversion 7 05-21-2014 02:11 AM
Change opf filename from content.opf to title.opf northstar7 Sigil 3 09-23-2013 12:44 PM
Could commercial Sigil be accepted? eping Sigil 17 04-11-2012 09:04 AM
ebook-meta --to-opf segfaults gurmuq Calibre 3 08-14-2010 09:36 PM


All times are GMT -4. The time now is 03:52 AM.


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