03-20-2011, 03:49 AM | #1 |
Junior Member
Posts: 9
Karma: 10
Join Date: Mar 2011
Location: Seattle, WA
Device: Kindle
|
epub validation error
ePub structure:
mimetype metadata.opf META-INF (folder: container.xml) OEBPS (folder: html and toc.ncx ) In Flightcrew error is: name of file/META-INF/container.xml line 1 invalid document structure This is the structure in the container.xml file: <?xml version="1.0"?> <container version="1.0" xmlns="urn:oasis:names:tc:opendocument:xmlns:conta iner"> <rootfiles> <rootfile full-path="/metadata.opf" media-type="application/oebps-package+xml"/> </rootfiles> </container> at http://threepress.org/document/epub-validate/ The error message reads: ERROR: TheVRabbit_44.epub: I/O error: invalid CEN header (bad compression method) What to do? Winn |
03-20-2011, 04:12 AM | #2 |
frumious Bandersnatch
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
The epubcheck message suggests that the file is not properly zipped, and this might be confusing flightcrew... How are you creating the epub? Are you sure you are compressing it as a ZIP and not some variant (like 7-zip or whatever), with the "deflate" method?
Otherwise, the full-path="/metadata.opf" looks wrong, as it points to an absolute path (it starts with a slash). It might work, but don't you mean full-path="metadata.opf"? |
03-20-2011, 12:19 PM | #3 |
Junior Member
Posts: 9
Karma: 10
Join Date: Mar 2011
Location: Seattle, WA
Device: Kindle
|
epub validation error
Working in Windows 7 64 bit
I removed the / but with the same results. I am using WinZip 14.5 First dragging the mimetype across then the other file and folders. mimetype is listed first and from what I can see it is uncompressed. The other files have various compression. Change zipx to epub. Run validation. |
03-20-2011, 01:07 PM | #4 |
Enquiring Mind
Posts: 562
Karma: 42350
Join Date: Aug 2010
Location: London, UK
Device: Kindle 3 (WiFi)
|
I think that might be your problem - you're zipping the files using WinZip 14's default "ZipX" compression, which is relatively new and may not yet be fully supported by other utilities. I'd suggest zipping the files using the "Legacy Zip 2.0" setting instead, and see if that solves the problem.
|
03-20-2011, 08:47 PM | #5 |
Junior Member
Posts: 9
Karma: 10
Join Date: Mar 2011
Location: Seattle, WA
Device: Kindle
|
epub validation error
Thanks,
What a difference an "x" makes. What a joy to see: "No errors or warnings detected" Winn |
03-21-2011, 02:23 AM | #6 |
Junior Member
Posts: 9
Karma: 10
Join Date: Mar 2011
Location: Seattle, WA
Device: Kindle
|
error validation error
Okay,
The test above was to provide a template. But, now with a "real" project. I am running into a different set of problems. When I validate, I get the following errors and don't know exactly what to look for: ERROR: miller_cross_purposes.epub/toc.ncx (line 78): The value of attribute "src" associated with an element type "null" must not contain the '<' character. This is what is on line 77/78 in the toc.ncx <content src="Cross_Purposes_NOOK_final_32011.html/> </navPoint> ERROR: miller_cross_purposes.epub/toc.ncx: The value of attribute "src" associated with an element type "null" must not contain the '<' character. ERROR: miller_cross_purposes.epub/toc.ncx (line 78): The value of attribute "src" associated with an element type "null" must not contain the '<' character. ERROR: miller_cross_purposes.epub/toc.ncx: The value of attribute "src" associated with an element type "null" must not contain the '<' character. ERROR: miller_cross_purposes.epub/Cross_Purposes_NOOK_final_32011.html: Malformed byte sequence: Invalid byte 1 of 1-byte UTF-8 sequence. Check encoding what does "check encoding" mean in the last one. I'm a newbie to ePub stuff. Thanks for any help. Winn Last edited by drwinn; 03-21-2011 at 02:27 AM. |
03-21-2011, 03:17 AM | #7 | ||
Enquiring Mind
Posts: 562
Karma: 42350
Join Date: Aug 2010
Location: London, UK
Device: Kindle 3 (WiFi)
|
Glad to see you got the first error(s) sorted out successfully.
Quote:
Code:
<content src="Cross_Purposes_NOOK_final_32011.html"/> </navPoint> Quote:
It looks like the file contains a declaration that it's UTF-8, either in an XML declaration at the start of the file: Code:
<?xml version="1.0" encoding="UTF-8"?> Code:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
||
03-21-2011, 06:15 PM | #8 |
Junior Member
Posts: 9
Karma: 10
Join Date: Mar 2011
Location: Seattle, WA
Device: Kindle
|
epub validation error
Here I am again. Running Flightcrew. Getting the following messages:
File: miller_cross_purposes.epub/Cross_Purposes_NOOK_final_32011.html/ Line: N/A Message: This resource is reachable but not present in the OPF <manifest>. From Manafest file: <manifest> <item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml"/> <item id="millerhtml" href="Cross_Purposes_NOOK_final_32011.html" media-type="application/xhtml+xml"/> </manifest> <spine toc="ncx"> <itemref idref="millerhtml"/> </spine> File: miller_cross_purposes.epub/toc.ncx Line 78 Message: This <content> element's "src" attribute value is "Cross_Purposes_NOOK_final_32011.html/", but that file does not exist. Line 78 in toc.ncx: <content src="Cross_Purposes_NOOK_final_32011.html/"> File: miller_cross_purposes.epub/toc.ncx Line 79 no character data is allowed by content model Line 79 in toc.ncx: </navPoint> Complete cluster from toc.ncx: <navPoint id="navpoint-11" playOrder="11"> <navLabel> <text>Bibliography</text> </navLabel> <content src="Cross_Purposes_NOOK_final_32011.html/"> </navPoint> File: miller_cross_purposes.epub/toc.ncx Line 79 Message: expected end of tag 'content' Line 79 is: </navPoint> File: miller_cross_purposes.epub/Cross_Purposes_NOOK_final_32011.html Line: 170 Message: entity 'nbsp' not found Line 170: &n bsp; And to the earth be peace.<br /> Any help would be appreciated. |
03-21-2011, 09:02 PM | #9 | |||||
Enquiring Mind
Posts: 562
Karma: 42350
Join Date: Aug 2010
Location: London, UK
Device: Kindle 3 (WiFi)
|
Hi Winn
I think all of these errors except the NBSP one are down to a single typo in the toc.ncx file. Quote:
Code:
Line 78 in toc.ncx: <content src="Cross_Purposes_NOOK_final_32011.html"/> Quote:
Quote:
Quote:
Quote:
This one... I'm not sure, but do you see the space between "N" and "BSP" in the 9th " "? I think perhaps there's a non-standard character lurking there. That space shows in your original post, and is showing when I preview this post, but isn't showing in the raw quoted text that I'm seeing here as I'm typing this. So not sure if it's some sort of artifact when the forum software displays the post, or an indication of something actually in the code. Perhaps deleting and retyping that string of " "s will get rid of this error? |
|||||
03-22-2011, 03:03 AM | #10 |
Junior Member
Posts: 9
Karma: 10
Join Date: Mar 2011
Location: Seattle, WA
Device: Kindle
|
epub vilidation error
It seems link I fix one thing and a bunch more pops up.
The problem is that I don't exactly know what I'm looking for. Is there a list of epub errors laying around somewhere? Here is a sample of the latest: no character data is allowed by content model notes line with the following Code:
<blockquote> The word <span class="italics">atonement</span>, which is almost the only theological term of English origin, has a curious history. The verb "atone," from the adverbial phrase "at one" (M.E. <span class="italics">at oon</span>), at first meant to reconcile, or make "at one;" from this it came to denote the action by which such reconciliation was effected.<a id="ftn5" href="#bkftn5">[5]</a> </blockquote> Same as above, just one line below element 'a' is not allowed for content model '(p|h1|h2|h3|h4|h5|h6|div|ul|ol|dl|pre|hr|blockquo te|address|fieldset|table|switch|form|noscript|ins |del|script)' </blockquote> is on the line denoted. What should I be looking for? The file opens in Adobe Digital Editions and the links seem to be working including the TOC internal page and the left margin of ADE. I am preparing this file for B&N Nook. Is the only acceptable outcome: no errors. Does the list mean that it will work on one reader and not others? I am using Math symbols for Greek Characters in the book like α for the Greek alpha. I can see them in ADE and in the PC Nook reader. Will that cause any kind of a problem? Thanks again? |
03-22-2011, 05:09 AM | #11 | |
frumious Bandersnatch
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Code:
<blockquote> <p>The word <span class="italics">atonement</span>, [...] effected.<a id="ftn5" href="#bkftn5">[5]</a></p> </blockquote> |
|
03-22-2011, 02:33 PM | #12 |
Junior Member
Posts: 9
Karma: 10
Join Date: Mar 2011
Location: Seattle, WA
Device: Kindle
|
epub validation error
Thanks Jellby and Donna for your help.
I am down to one set of errors: I am using internal links for an internal TOC with <p class="left"><a href="#foreword">Foreword</a></p> to <a id="foreword"></a> The ERROR reference below is to the line (line 119) with the <a id="foreword"></a>. It references this each occurrence through the document with different IDs i.e., <a id="c1"></a> or <a id="c2"></a> ERROR: miller_cross_purposes.epub/Cross_Purposes_NOOK_final_32011.html (line 119): element "a" from namespace "http://www.w3.org/1999/xhtml" not allowed in this context These ERROR messages are generated by epubchecker. FlightCrew is only unhappy with one line in the HTML file: element 'a' is not allowed for content model '(p|h1|h2|h3|h4|h5|h6|div|ul|ol|dl|pre|hr|blockquo te|address|fieldset|table|switch|form|noscript|ins |del|script)' This is assigned to the next to last line of the HTML file which reads: </body> I read somewhere that FlightCrew was better at this stuff than epubchecker. The first being in English and the latter one in Codelish. While I can read the English, I am still stumped by what it means. What to do? Thanks again. |
03-22-2011, 03:35 PM | #13 |
The Grand Mouse 高貴的老鼠
Posts: 71,493
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
|
03-22-2011, 04:13 PM | #14 |
Junior Member
Posts: 9
Karma: 10
Join Date: Mar 2011
Location: Seattle, WA
Device: Kindle
|
epub validation error
Thanks pdurrant,
move the <a....></a> outside the <p>....</p> or other block level tags. but that makes no sense to me. The following is one example from the 86 footnotes in this piece with reciprocal links. Code:
<p class="left"><a id="bkftn86" href="#ftn86">[86]</a>. Lee, Johnny, <span class="italics">Lookin' for Love</span>, Music, 1989, Q Records, Atlanta.</p> Code:
<a id="bkftn86" href="#ftn86">[86]</a>. <p class="left">Lee, Johnny, <span class="italics">Lookin' for Love</span>, Music, 1989, Q Records, Atlanta.</p> What am I missing? Could you give me an example of what is meant? |
03-22-2011, 04:16 PM | #15 | |
frumious Bandersnatch
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Just like <blockquote>, the main <body> cannot contain in-line, such as <a>, <span> or <i>. You have to put your <a> inside a <p> or a <div>. But you don't need an empty anchor at all. If all you want is to put an anchor somewhere, you can add the id attribute to any existing element: Code:
<p id="foreword">This is where the Foreword starts.</p> <p>This <a href="#foreword">link</a> points to the previous paragraph.</p> |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
epub validation error | sassanik | Sigil | 19 | 12-08-2010 05:46 AM |
Epub Validation Error? | LadyDae | ePub | 6 | 10-29-2010 07:20 PM |
ePub validation error | sk19.gupta | Introduce Yourself | 6 | 10-19-2010 10:53 PM |
ePub Validation Error | mrbillb | ePub | 6 | 09-28-2010 02:14 PM |
weird epub validation error message | GFMCo | ePub | 2 | 09-09-2010 07:25 PM |