06-12-2010, 08:52 AM | #1 |
Not who you think I am...
Posts: 374
Karma: 30283
Join Date: Jan 2010
Location: Honolulu
Device: PocketBook 360 -- Ivory
|
epubcheck bugs?
I've written a script that generates epubs from hand-coded html.
I keep getting the following error when validating with epubcheck: Code:
ERROR: ./PrisonersBase.epub/content.opf: unique-identifier attribute in package element must reference an existing identifier element id Code:
<package version="2.0" xmlns="http://www.idpf.org/2007/opf" unique-identifier="BookID"> Code:
<dc:identifier opf:scheme="Book" id="BookID">Book_00000031</dc:identifier> Code:
<meta name="dtb:uid" content="Book_00000031" /> I've tried making everything lower case, removing the opf:scheme line, retyping the text and saving... Hair is being plucked in fistfuls. cap |
06-12-2010, 09:53 AM | #2 |
frumious Bandersnatch
Posts: 7,534
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Is the <dc:identifier> inside a <metadata> block? Can we see the full OPF file?
|
Advert | |
|
06-13-2010, 07:38 AM | #3 |
Not who you think I am...
Posts: 374
Karma: 30283
Join Date: Jan 2010
Location: Honolulu
Device: PocketBook 360 -- Ivory
|
I figured it out -- I think. At least they're validating now.
I'm working in a Windows virtual machine, and the text editor was producing CP1252 encoding. I had to find a utility (iconv for Windows) to convert all the files after they were created, but before they were zipped into an ePub. There were also issues with capitalization. Also found and fixed. Yup, the <dc:identifier> was inside a <metadata> block. I spent most of the day on this, but now I've got a script that parses the xhtml, and produces a nicely formatted ePub, including TOC. The only thing left to do is program it to split the files at chapter-breaks. (Not req'd by the spec, but apparently it's necessary for current hardware limitations.) Thanks for helping, cap |
Tags |
epubcheck, unique-identifier |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
epubcheck for Mac OS X | pdurrant | ePub | 61 | 09-14-2015 03:29 AM |
epubcheck, any software can pass its validiation check? | droople | ePub | 96 | 08-16-2011 01:38 PM |
Web-based epubcheck upgraded to epubcheck 1.0.5 | kjk | ePub | 4 | 02-09-2010 09:53 PM |
epubcheck | GeoffC | ePub | 3 | 11-03-2009 04:26 AM |
Adobe EpubCheck to validate Epub documents | Alexander Turcic | News | 11 | 12-29-2007 08:07 PM |