View Single Post
Old 12-04-2015, 09:59 AM   #1
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
Errors while validating EPUB

I have a fun project where I'm making EPUBs for to see how it's made. I'm using the validator at http://validator.idpf.org/ and am getting some errors which I don't know how to handle.

ERROR 1. "Mimetype file entry is missing or is not the first file in the archive."

The mimetype file is actually in the EPUB. Here's my EPUB listing from 7zip.

Code:
   Date      Time    Attr         Size   Compressed  Name
------------------- ----- ------------ ------------  ------------------------
2015-12-04 09:47:54 ....A          260          177  META-INF\container.xml
2015-12-04 09:24:16 ....A           20           20  mimetype
2015-12-04 09:47:54 ....A         1130          512  OEBPS\content.opf
2015-10-30 18:33:34 D....            0            0  OEBPS\images
2015-10-30 18:33:34 D....            0            0  OEBPS\styles
2015-12-04 09:32:10 ....A          943          522  OEBPS\styles\style01.css
2015-11-04 09:19:14 D....            0            0  OEBPS\Text
2015-12-04 09:47:54 ....A         1381          777  OEBPS\Text\00cover.xhtml
2015-12-04 09:47:54 ....A         9334         3678  OEBPS\Text\31book.xhtml
2015-10-30 18:33:34 D....            0            0  OEBPS\themes
2015-12-04 09:47:54 ....A         1675          611  OEBPS\toc.ncx
------------------- ----- ------------ ------------  ------------------------
                                 21449         7839  9 files, 4 folders

I have several more errors in OEBPS/content.opf

ERROR 2 on line 12 of content.opf: "Error while parsing file 'value of attribute "id" is invalid; must be an XML name without colons'."

Here's my whole content.opf file:

Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="BookId" version="2.0">
  <metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf">
    <dc:title>Book of the Farm, 1844, Vol 2</dc:title>
    <dc:creator opf:role="aut">Henry Stephens, FRSE</dc:creator>
    <dc:language>en</dc:language>
    <dc:date opf:event="modification">2015-12-04</dc:date>
    <dc:identifier id="bookid" opf:scheme="ISBN">bookofthefarm-vol1-1847</dc:identifier>  </metadata>

<manifest>
  <item href="toc.ncx" id="ncx" media-type="application/x-dtbncx+xml" />
  <item href="Text/00cover.xhtml" id="00cover.xhtml" media-type="application/xhtml+xml" /> # THIS IS LINE 12
  <item href="Text/31book.xhtml" id="31book.xhtml" media-type="application/xhtml+xml" />
  <item href="styles/style01.css" id="style01.css" media-type="text/css" />
</manifest>

<spine toc="ncx">
  <itemref idref="00cover.xhtml" /> # LINE 18
  <itemref idref="31book.xhtml" /> # ERROR ON LINE 19
</spine>

<guide>
  <reference href="Text/00cover.xhtml" title="Cover" type="cover" />
</guide>
</package>
Line 12 needs an XML scheme attribute? What are the values of the scheme attribute?
crankypants is offline   Reply With Quote