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-04-2015, 05:33 AM   #1
roccokain
Junior Member
roccokain began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2015
Device: Kindle Paperwhite
ERROR Issues at EPUB verification

Hello everyone,

i got a problem with the upload of my eBook at the site epubli.de

While the verification process i get som Error Issues from the site.

For example:
Error while parsing file 'Duplicate '0-bfc8bdc902174996bf1520277eb08963''.

or:
Error while parsing file 'value of attribute "id" is invalid; must be an XML name without colons'.

That is the first time i work with HTML, notepad+ and KindlePreviewer.
So i don't know what this Error Issues means or how i can find and fix them.

Please, can anyone help me???

Thanks in advance
Roccokain
roccokain is offline   Reply With Quote
Old 12-04-2015, 06:06 AM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by roccokain View Post
Error while parsing file 'Duplicate '0-bfc8bdc902174996bf1520277eb08963''.
The same id was used twice.

Quote:
Originally Posted by roccokain View Post
Error while parsing file 'value of attribute "id" is invalid; must be an XML name without colons'.
The id attribute started with a number instead of a letter.

Quote:
Originally Posted by roccokain View Post
So i don't know what this Error Issues means or how i can find and fix them.
a) Download Sigil, install the optional FlighCrew plugin and run it. It'll display hyperlinked error messages.

b) Open the book with Calibre Editor and click: Run check followed by Try to correct all fixable errors automatically.
Doitsu is offline   Reply With Quote
Advert
Old 12-04-2015, 06:56 AM   #3
roccokain
Junior Member
roccokain began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2015
Device: Kindle Paperwhite
Hi,

thanks for the fast answer! Great.

I will try it!

BIG THX!
roccokain is offline   Reply With Quote
Old 12-06-2015, 09:18 AM   #4
crankypants
Hmm.
crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.
 
Posts: 124
Karma: 2016606
Join Date: Oct 2015
Device: Android 4.2 Google Play Reader
Roccokain, I just went through this yesterday. Here's what I learned.
  1. All ids must be unique within an epub book. Don't bother making IDs unique within all <img> tags, or all <h1> tags, just make them unique within the whole book across all tags.
  2. All ids must begin with a letter.
  3. All filenames in content.opf or toc.ncx, like XHTML and CSS files, must begin with a letter.
  4. The mimetype file is case sensitive, it MUST be in all lowercase, with no byte order marker, and no carriage return at the end of the single line inside it.
  5. The mimetype file must not be compressed within the EPUB, and MUST be the first file. Only info-zip does this correctly AFAIK.
  6. Just because an ereader can read your EPUB does not mean it will pass validation.

And last, the BookId value of the id attribute in content.opf is case sensitive. Here's a correct tag:

<dc:identifier id="BookId" opf:scheme="ISBN">1223456988</dc:identifier>

Last edited by crankypants; 01-05-2016 at 09:57 AM.
crankypants is offline   Reply With Quote
Old 12-06-2015, 10:48 AM   #5
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by crankypants View Post
  1. The mimetype file must not be compressed within the EPUB, and MUST be the first file. Only info-zip does this correctly ASFAIK.

And last, the BookId in content.opf is case sensitive. Here's a correct tag:

<dc:identifier id="BookId" opf:scheme="ISBN">1223456988</dc:identifier>
It can also be done with 7-zip and probably others. The clue is that the compression level for the mimetype is usually called 'store'. So, first create an archive with only the mimetype and then add the rest.

The ISBN can be used as identifier, but it can be any code. A lot of people use UUID.
Toxaris is offline   Reply With Quote
Advert
Old 12-07-2015, 09:39 AM   #6
roccokain
Junior Member
roccokain began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2015
Device: Kindle Paperwhite
Hello all,

ich try to fix the Errors like Doitsu has offered.
Some Errors could be fixed...but not all.

Here some Lines for example.....



Error while parsing file 'value of attribute "id" is invalid; must be an XML name without colons'.

current Line: <body id="0-bfc8bdc902174996bf1520277eb08963" class="calibre">
current Line: <body id="1T140-bfc8bdc902174996bf1520277eb08963" class="calibre">

Error while parsing file 'element "nav" not allowed anywhere; expected the element end-tag or element "address", "blockquote", "del", "div", "dl", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ins", "noscript", "ns:svg", "ol", "p", "pre", "script", "table" or "ul" (with xmlns:ns="http://www.w3.org/2000/svg")'.

current Line: <nav epubU0003Atype="toc">
current Line: </ul>

Referenced resource could not be found in the EPUB.

current Line: <li class="calibre6"><a
href="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX">Kapitel1 </a></li>


Thats the last three errors befor i can load the EPUB.......

Thanks to all for the Help!!!!

Roccokain
roccokain is offline   Reply With Quote
Old 12-07-2015, 09:46 AM   #7
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by roccokain View Post
Error while parsing file 'value of attribute "id" is invalid; must be an XML name without colons'.

current Line: <body id="0-bfc8bdc902174996bf1520277eb08963" class="calibre">
current Line: <body id="1T140-bfc8bdc902174996bf1520277eb08963" class="calibre">
id values cannot start with a number, they must start with a letter.

Quote:
Error while parsing file 'element "nav" not allowed anywhere; expected the element end-tag or element "address", "blockquote", "del", "div", "dl", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ins", "noscript", "ns:svg", "ol", "p", "pre", "script", "table" or "ul" (with xmlns:ns="http://www.w3.org/2000/svg")'.

current Line: <nav epubU0003Atype="toc">
current Line: </ul>
The <nav> element is not defined, and therefore not allowed. Remove it. (And it is badly formed anyway, it's not closed).

Quote:
Referenced resource could not be found in the EPUB.

current Line: <li class="calibre6"><a
href="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX">Kapitel1 </a></li>
There's no file named "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" in your epub. Fix the href.
Jellby is offline   Reply With Quote
Old 12-07-2015, 10:21 AM   #8
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by roccokain View Post
Error while parsing file 'element "nav" not allowed anywhere; expected the element end-tag or element "address", "blockquote", "del", "div", "dl", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ins", "noscript", "ns:svg", "ol", "p", "pre", "script", "table" or "ul" (with xmlns:ns="http://www.w3.org/2000/svg")'.
It looks like you've generated an ePub3 book with InDesign and saved it with Calibre. However, Calibre will automatically save all ePub3 books as ePub2 books.

Note that ePub3 books require a nav document with nav tags in it, however, ePub2 documents don't. You may want to remove the nav document and re-generate the HTML TOC with Sigil or Calibre. As for the other message, I've already pointed out in the second post that ids in ePub2 books can't start with a number. (The can start with a number in ePub3 books.)
Doitsu is offline   Reply With Quote
Old 12-07-2015, 12:14 PM   #9
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
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
So, the alternative for you is to make an ePub 3 book and avoid Calibre until is supports ePub 3. You still need to fix the xxxxxxxxxxxxx file name. There is an entry in the OPF file that determines whether a file is ePub 3 or ePub 2. It looks like <package version="3.0" xml:lang="en">.

Dale
DaleDe is offline   Reply With Quote
Old 12-08-2015, 08:47 AM   #10
crankypants
Hmm.
crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.
 
Posts: 124
Karma: 2016606
Join Date: Oct 2015
Device: Android 4.2 Google Play Reader
Quote:
Originally Posted by Toxaris View Post
It can also be done with 7-zip and probably others. The clue is that the compression level for the mimetype is usually called 'store'. So, first create an archive with only the mimetype and then add the rest.

The ISBN can be used as identifier, but it can be any code. A lot of people use UUID.
I got the most recent version of 7-zip but I couldn't get it to work with the mimetype file. Instead of wasting time I just used Info-zip.
crankypants is offline   Reply With Quote
Old 12-08-2015, 12:35 PM   #11
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
For my own programs I created a zip-library to do it for me.
Toxaris is offline   Reply With Quote
Old 12-09-2015, 10:58 AM   #12
sallyember
Junior Member
sallyember began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2013
Location: Missouri, USA
Device: Kindle and Desktop Dell
My epub is failing at Smashwords for these two errors (both appear more than once in the error list, but only two errors). I am not a coder. I do not understand nor do I have software to work directly with epub (Calibre, In Design, etc., not owned and do not want). Smashwords uploads my MS Word (via Open Office) doc and converts to epub then tells me if it passes or not. This document passed last month. I made some edits and resubmitted and now it is riddled with errors it didn't have before and I don't know how to fix them in MS Word. HELP? The two errors are: "Error while parsing file 'value of attribute "id" is invalid; must be an XML name without colons'." (appears 27 times!?! in toc.ncx) and "Error while parsing file 'element "span" not allowed here; expected element "address", "blockquote", "del", "div", "dl", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ins", "noscript", "ns:svg", "ol", "p", "pre", "script", "table" or "ul" (with xmlns:ns="http://www.w3.org/2000/svg")'." (appears twice in
tmp_6ecc9056e25d1ed623c17fc818afa7b4_pocC0b.ch.fix ed.fc.tidied.stylehacked.xfixed_split_004.html). Thanks!

Last edited by sallyember; 12-09-2015 at 03:40 PM.
sallyember is offline   Reply With Quote
Old 12-09-2015, 11:00 AM   #13
sallyember
Junior Member
sallyember began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2013
Location: Missouri, USA
Device: Kindle and Desktop Dell
I can't make sense of this! Help!?

Quote:
Originally Posted by crankypants View Post
Roccokain, I just went through this yesterday. Here's what I learned.
  1. All ids must be unique within an epub book. Don't bother making IDs unique within all <img> tags, or all <h1> tags, just make them unique within the whole book across all tags.
  2. All ids must begin with a letter.
  3. All filenames in content.opf or toc.ncx, like XHTML and CSS files, must begin with a letter.
  4. The mimetype file is case sensitive, it MUST be in all lowercase, with no byte order marker, and no carriage return at the end of the single line inside it.
  5. The mimetype file must not be compressed within the EPUB, and MUST be the first file. Only info-zip does this correctly ASFAIK.
  6. Just because an ereader can read your EPUB does not mean it will pass validation.

And last, the BookId value of the id attribute in content.opf is case sensitive. Here's a correct tag:

<dc:identifier id="BookId" opf:scheme="ISBN">1223456988</dc:identifier>
Can someone please write about how to fix these in MS Word format, not epub software, and NOT as if I can actually see this code (which I cannot) in my document?

Thanks.
sallyember is offline   Reply With Quote
Old 12-09-2015, 11:01 AM   #14
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
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
Smashwords only accepts ePub 2 content. The id value must start with a letter. You will have to post the span entries to figure out what is wrong.
DaleDe is offline   Reply With Quote
Old 12-09-2015, 11:16 AM   #15
sallyember
Junior Member
sallyember began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2013
Location: Missouri, USA
Device: Kindle and Desktop Dell
I don't know what this means: "You will have to post the span entries to figure out what is wrong."
sallyember is offline   Reply With Quote
Reply

Tags
ebook, epub, error, html, kindle


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Syncing location - looking for verification this CAN'T be done dakins Calibre 9 12-12-2014 04:59 PM
Help with Apple error - ERROR ITMS-9000: ".epub: wrong namespace in filename.epub fil muzammil ePub 1 11-30-2012 05:25 AM
Vox Google 2 step verification process & the Vox 49Kat Kobo Tablets 4 10-23-2012 07:58 PM
"Error importing EPUB. EOCD not found. Not a ZIP archive? (Error Code 1068)" oren ePub 8 02-20-2012 07:20 AM
"Error importing EPUB. EOCD not found. Not a ZIP archive? (Error Code 1068)" oren Android Devices 1 02-20-2012 04:10 AM


All times are GMT -4. The time now is 01:18 PM.


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