Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 02-11-2016, 09:27 AM   #1
brahms
Enthusiast
brahms began at the beginning.
 
Posts: 43
Karma: 30
Join Date: Feb 2016
Device: none
Obscure ePub validation error

Hi, and thanks for your help.

I've built the ePub from scratch using Notepad++ and I'm using dummy content files to get the package working.

I have only one remaining error when I use the online epub validator at http://validator.idpf.org/, but I can't see the cause.

The error is:
./tmp/uploads/1455200484959_0000117833/inputFile/mybook5.epub/OEBPS/content.opf(-1,-1)

There was an error when parsing the EPUB version: Version not found.

My content.opf starts like this (I've replaced confidential info below with XXXX):

<?xml version="1.0" encoding="utf-8"?>
<package version="2.0" xmlns="http://www.idpf.org/2007/opf" unique-identifier="BookId">
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlnspf="http://www.idpf.org/2007/opf">

<!--Required Metadata-->
<dc:title>XXXXXX</dc:title>
<dc:language>en-gb</dc:language>
<dc:identifier id="BookId" opf:scheme="ISBN">urn:isbn:XXXXXXX</dc:identifier> <!--Use the Same for the toc.ncx file -->
<dc:creator opf:role="aut">XXXXXXX</dc:creator>
<dcublisher>XXXXXX</dcublisher>
<dc:date>2016-03-14</dc:date>

<meta name="cover" content="My_Cover_ID"/> <!--Required for KindleGen-->

etc etc

<metadata>

I see above that code "colon o" got interpreted as an icon above. The original looks ok.

Thanks for your help

Last edited by brahms; 02-11-2016 at 09:30 AM.
brahms is offline   Reply With Quote
Old 02-11-2016, 09:50 AM   #2
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
It looks alright from what I can see. Did you store the opf with UTF-8 encoding?
Toxaris is offline   Reply With Quote
Advert
Old 02-11-2016, 10:11 AM   #3
brahms
Enthusiast
brahms began at the beginning.
 
Posts: 43
Karma: 30
Join Date: Feb 2016
Device: none
Quote:
Originally Posted by Toxaris View Post
It looks alright from what I can see. Did you store the opf with UTF-8 encoding?
Thanks for replying.

No, ANSI. I've just tested saving as utf-8 and still the same error. Which should it be? UTF-8 renders a hyphen as x97 in the <dc:description>.

Dave
brahms is offline   Reply With Quote
Old 02-11-2016, 10:15 AM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Download epubcheck 4.0.1 and try that. There is no indication what version validator is being use online.
JSWolf is offline   Reply With Quote
Old 02-11-2016, 10:57 AM   #5
brahms
Enthusiast
brahms began at the beginning.
 
Posts: 43
Karma: 30
Join Date: Feb 2016
Device: none
Thanks JS; I'll give that a shot later and get back.
brahms is offline   Reply With Quote
Advert
Old 02-11-2016, 12:25 PM   #6
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 brahms View Post
Thanks for replying.

No, ANSI. I've just tested saving as utf-8 and still the same error. Which should it be? UTF-8 renders a hyphen as x97 in the <dc:description>.

Dave
Always use UTF-8 as file encoding. That is easy enough with Notepad++ and as you already specify that the content is UTF-8, you must ensure that it actually is. If characters change is you change the encoding, reenter the required character.
Toxaris is offline   Reply With Quote
Old 02-11-2016, 02:34 PM   #7
brahms
Enthusiast
brahms began at the beginning.
 
Posts: 43
Karma: 30
Join Date: Feb 2016
Device: none
Thanks Toxaris. Will do.

A how-to book i'm using says encode the toc.ncx in ANSI. Is that correct?
brahms is offline   Reply With Quote
Old 02-12-2016, 04:07 AM   #8
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 brahms View Post
Thanks Toxaris. Will do.

A how-to book i'm using says encode the toc.ncx in ANSI. Is that correct?
No. To prevent issues ensure that all text files (so, including toc.ncx) are encoded in UTF-8.
Toxaris is offline   Reply With Quote
Old 02-12-2016, 09:52 AM   #9
brahms
Enthusiast
brahms began at the beginning.
 
Posts: 43
Karma: 30
Join Date: Feb 2016
Device: none
Many thanks guys. The problem was caused by the wrong encoding of some files. Notepad++ seems to remember the last file's encoding setting so if you resave a file without checking it can re=encode.

Or something like that.

Again, many thanks.

Dave
brahms is offline   Reply With Quote
Old 02-12-2016, 01:03 PM   #10
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
In some older version ADE, I've seen display errors due to not being encoded as UTF-8 BOM.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Epub validation error Pixie25 ePub 13 09-18-2012 09:39 AM
Epub Validation Error Help Please VictoriaSkyline ePub 18 06-14-2012 11:21 AM
epub validation error adetutuijose ePub 12 01-14-2012 10:05 PM
epub validation error sassanik Sigil 19 12-08-2010 05:46 AM
ePub Validation Error mrbillb ePub 6 09-28-2010 02:14 PM


All times are GMT -4. The time now is 02:50 PM.


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