06-08-2018, 09:40 AM | #1 |
Junior Member
Posts: 6
Karma: 10
Join Date: Jun 2018
Device: kindle
|
epub validation error:
Hi. I am relatively new to this. I have created many epub files in the past for kindle, but there were no errors with the amazon kindle validation tool. However, now I am trying my hand at creating an epub for smashwords, using the same epub file with the EpubCheck version 4.0.2.
It generated the error below. It mentions the line and position, but unsure if this an actual visible error in that location that I can 'delete' or some invisible code there that must be omitted or corrected. I am perplexed and would appreciate any help in how to rectify this: Type:ERROR File:OEBPS/content.opf Line:11 Position: 31 Message: Date value 'September' is not valid as per http://www.w3.org/TR/NOTE-datetime:[For input string: "September"] is not an integer. Last edited by fflanders; 06-08-2018 at 09:45 AM. |
06-08-2018, 10:24 AM | #2 |
Grand Sorcerer
Posts: 27,693
Karma: 196159104
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
A date on that particular line (or very close to it) is not in the correct format. Whether or not you can delete it depends on if it's part of a required element or not.
|
Advert | |
|
06-08-2018, 05:42 PM | #3 |
Junior Member
Posts: 6
Karma: 10
Join Date: Jun 2018
Device: kindle
|
Like I say, it's nothing visual that I can see to delete...
|
06-08-2018, 06:06 PM | #4 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Do you have an entry around line 11 something like
<dc:date>*September*</dc:date> If so, I think you need to change the date format to something that looks more like <dc:date>2017-09-08T20:44:32.304000+00:00</dc:date> |
06-09-2018, 08:56 AM | #5 |
Junior Member
Posts: 6
Karma: 10
Join Date: Jun 2018
Device: kindle
|
Thanks jackie_w for the response.
How would I see something like: <dc:date>*September*</dc:date> I understand that epub is essentially html(?) How would I gain access to see the bit of code to omit it and then resave it? Is this something I can do within inDesign where I created the file or is there a freeware program I can download to see it, remove it, and resave it? Thanks so much. |
Advert | |
|
06-09-2018, 11:50 AM | #6 |
Evangelist
Posts: 485
Karma: 2267928
Join Date: Nov 2015
Device: none
|
Open in with an archive manager and look inside the content.opf file.
Alternatively, you can install Sigil, but it messes up the EPUB structure so not recommended. |
06-09-2018, 01:39 PM | #7 |
Grand Sorcerer
Posts: 12,417
Karma: 74317824
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
|
06-09-2018, 08:16 PM | #8 |
Evangelist
Posts: 485
Karma: 2267928
Join Date: Nov 2015
Device: none
|
|
06-09-2018, 09:10 PM | #9 |
Grand Sorcerer
Posts: 12,417
Karma: 74317824
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
|
06-10-2018, 04:53 AM | #10 |
A Hairy Wizard
Posts: 3,130
Karma: 18727091
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
lol - that's called "organization". It can be different than what you have, so I would characterize it as "Sigil could change the structure" NOT messes it up. As PeterT mentions, it's still a perfectly valid and usable epub.
|
06-11-2018, 07:55 AM | #11 |
Junior Member
Posts: 6
Karma: 10
Join Date: Jun 2018
Device: kindle
|
The file has been perfectly usable for kindle as an epub. However, I am trying to ensure it is usable for smashwords (and smashwords suggests using the validator which found this error). Is this error something minor and/or insignificant that can be simply overlooked?
Or should I do as Sarmat89 suggested and open with an archive manager and look inside the content.opf file to find and make the correction? If the latter, can someone suggest a freeware archive manger to do this with as I am unfamiliar with any of this. thanks |
06-11-2018, 03:02 PM | #12 |
Junior Member
Posts: 6
Karma: 10
Join Date: Jun 2018
Device: kindle
|
I have attempted to do what was suggested - looking inside the content.opf file
... but in all likelihood, did not go about it the correct file. I opened the file in dreamweaver and found the line: <dc:date>*September*</dc:date> And changed it as suggested. However, when you resave the file with dreamweaver it adds the suffix xhtml to .opf, so it reads: opf.xhtml So I then renamed the file by omitting the .html I then rezipped the contents and changed the file type from .zip to .epub When I did this method and redid the validator, I now have this error: |
06-11-2018, 04:06 PM | #13 |
Guru
Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
|
The error messages seem to suggest you now have an epub file contained within the epub.
Start again and this time either use Sigil or Calibre's epub editor or use basic tools such as 7-zip to open the epub file and the editor in 7-Zip to make the edit to the opf file, then when you save the modified opf it should update the archive (epub) BobC |
06-12-2018, 07:25 AM | #14 | |
Grand Sorcerer
Posts: 5,625
Karma: 23190435
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
For example: Code:
<dc:date>2017-09-01</dc:date> <dc:date>2018-09-01</dc:date>
|
|
06-12-2018, 08:08 AM | #15 |
Grand Sorcerer
Posts: 27,693
Karma: 196159104
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
If you created this epub with InDesign, I'd be looking for a way to make sure it didn't generate invalid date metadata in the first place, myself.
|
Tags |
epubcheck error, integer, smashwords |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Another EPUB validation error! | Garyhei | ePub | 1 | 11-28-2013 12:39 AM |
ePub Validation Error | KimMosley | ePub | 4 | 03-12-2013 12:26 PM |
Epub validation error | Pixie25 | ePub | 13 | 09-18-2012 09:39 AM |
epub validation error | adetutuijose | ePub | 12 | 01-14-2012 10:05 PM |
Epub validation Error | fiona86 | ePub | 3 | 06-25-2011 12:57 AM |