![]() |
#1 |
Graphic Artist
![]() Posts: 2
Karma: 10
Join Date: Jun 2010
Location: San Francisco
Device: Kindle
|
ePub Validation Problem
I have built an ePub file, using Dreamweaver, Calibre, Sigil. It works fine in iBook (locally) and Adobe Digital Editions, looks great, and (of course) will not validate. I get this error message, over and over:
Code:
(name of book).epub/OEBPS/Text/jas_split_000.xhtml(64): 'OEBPS/Text/title_page': referenced resource missing in the package Code:
<h1 class="chead" id="calibre_pb_2"><a class="calibre1" href="contents" id="contents"></a>Contents</h1> Any ideas would be greatly appreciated |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
<a class="calibre1" href="contents" id="contents"></a>
Your href is malformed. What is this referring to? A file? An id within a file? In fact it looks as if this anchor is trying to link back to itself. All hrefs should specify the complete location: <filename>#<fragment id>. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Graphic Artist
![]() Posts: 2
Karma: 10
Join Date: Jun 2010
Location: San Francisco
Device: Kindle
|
First off, thank you for your reply, charleski! All of the hrefs in question refer to named anchors in the body of the text, to which either the TOC, index, or footnote links point. In the example I offered, "Contents" is the anchor to which the link in the TOC page refers. And since the h1 tag is sufficient to place it in the TOC, and nothing links to it directly, that probably is dumb. The ID is identical to the href because I had no reason to make them different. Because, evidently, I have no idea what I am doing.
Most of the offending links are meant to be named anchors to "pages" in the book: Quote:
|
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
You only need to include an href if you want the anchor to link back to something (ToC, index, etc). The id is the name of that particular anchor, the href is a pointer allowing the anchor to link to somewhere else.
E.g.: Text.html: <a id="XYZ_Text" href="Index.html#XYZ_Index">XYZ</a> Index.html: XYZ: <a id="XYZ_Index" href="Text.html#XYZ_Text">p16</a> Click on 'XYZ' in the index and it'll take you to the page in the text where it's located. Click on 'XYZ' in the text and it'll take you back to the index entry for it. If you don't need the link-back (which sounds like it's the case here), then you can drop the href (and the class, which is irrelevant since the anchor doesn't contain any text). So simply change them to <a id="p16" />. Your html will then look like: Text.html: blah blah blah <a id="XYZ1" />XYZ blah ... blah blah blah <a id="XYZ2" />XYZ blah Index.html: XYZ: <a href="Text.html#XYZ1">p16</a>, <a href="Text.html#XYZ2">p24</a> Last edited by charleski; 08-04-2010 at 09:30 AM. Reason: Made the example clearer |
![]() |
![]() |
![]() |
#5 | |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Second, the real problem is that your "href="p16"" actually links to a file name "p16", which does not exist; what you really mean is "href="#p16"", i.e., a link to the target named "p16" in the current file. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Aug 2010
Device: iPad
|
Quote:
Sure, I can create the link, but what text should appear in the Index, rather than something like the "16"? IOW, what is are the recommended conventions for laying out the Index section of an ePub? And are there editors/tools that help with this? |
|
![]() |
![]() |
![]() |
#7 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,884
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
<h3>Chapter 42</h3> No visible referent in the text? <h3 title="The big format fight scene"> </h3> ![]() Sigil will make the linkage for you. |
|
![]() |
![]() |
![]() |
#8 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
|
Quote:
![]() He is talking about the index and if there is an auto feature somewhere which takes the nightmare of hyperlink index and puts in one nice little button to click on. |
|
![]() |
![]() |
![]() |
#9 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
Quote:
|
|
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Aug 2010
Device: iPad
|
Thanks for the quick responses. And, yes, I am not worried about the TOC -- I have that part working, using a combination of Dreamweaver and eCub, plus some text edit tools to tweak and rezip the resulting .epub file.
After I posted this question I found a discussion by Liz Castro in her blog (http://tinyurl.com/2537fxa). It's an interesting approach ... and a lot of work! She discusses the rationale for retaining the print page number values in her epub index entries and provides a link to (draft) material on the pagelist function. BTW, her new book (on ePub) has come out, and it is available in ePub format as well as paper. It has already answered another of my 'burning questions' from the book's preview pages: how to do a "keep together" so that a header doesn't appear alone, on the bottom of a page. Yeah. (That was going to be my next post here.) Keri |
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
The real problem with Liz's approach is that the index links to the start of a 'page' rather than to the text where the entry appears. Since it's quite possible for a printed page to contain more text than a reader can display on a single screen (especially if you're reading the ebook on a small device like a cell phone), that means there's no guarantee that the index entry will take you to a screen which mentions the subject at all. This could cause obvious confusion and frustration if the user doesn't realise they might have to page forward one or two times to find the relevant text.
She's attempting to leverage the existing tools that InDesign provides, and that makes a lot of sense, but it's not really the best approach to the problem. |
![]() |
![]() |
![]() |
#12 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Sep 2010
Device: none
|
Hi, I have a similar error. I'm uploading our first epub file to itunes producer and come up with the following:
ERROR: CutthroatBusiness_ASavannahMartin.epub/OEBPS/Text/index_split_001.html(10): 'stylesheet.css': referenced resource missing in the package ERROR: CutthroatBusiness_ASavannahMartin.epub/OEBPS/Text/index_split_003.html(10): 'stylesheet.css': referenced resource missing in the package ERROR: CutthroatBusiness_ASavannahMartin.epub/OEBPS/Text/index_split_004.html(10): 'stylesheet.css': referenced resource missing in the package ERROR: CutthroatBusiness_ASavannahMartin.epub/OEBPS/Text/index_split_005.html(10): 'stylesheet.css': referenced resource missing in the package ERROR: CutthroatBusiness_ASavannahMartin.epub/OEBPS/Text/index_split_006.html(10): 'stylesheet.css': referenced resource missing in the package ERROR: CutthroatBusiness_ASavannahMartin.epub/OEBPS/Text/index_split_007_split_000.html(10): 'stylesheet.css': referenced resource missing in the package ERROR: CutthroatBusiness_ASavannahMartin.epub/OEBPS/Text/index_split_007_split_001_split_000.html(10): 'stylesheet.css': referenced resource missing in the package ERROR: CutthroatBusiness_ASavannahMartin.epub/OEBPS/Text/index_split_007_split_001_split_001.html(10): 'stylesheet.css': referenced resource missing in the package Check finished with warnings or errors! When I look at the code for the stylesheet page in Sigil it looks fine but then again I don't know code. Feel free to talk to me like a kindiegardner. Thanks, |
![]() |
![]() |
![]() |
#13 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
|
Ok...We need to see your stylesheet.css and the index_split_001.html for starters.
as it's probably the same error for the rest of them |
![]() |
![]() |
![]() |
#14 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Could be just a problem of relative paths. If you have:
OEBPS/Text/index_split_001.html OEBPS/Styles/stylesheet.css then, in index_split_001.html you have to refer to "../Styles/stylesheet.css", and not just "stylesheet.css". |
![]() |
![]() |
![]() |
#15 | |
sudarsanam
![]() Posts: 1
Karma: 10
Join Date: Dec 2008
Device: ebook
|
reply
i am also learn
Quote:
Last edited by sudarsanam; 10-07-2010 at 01:09 AM. |
|
![]() |
![]() |
![]() |
Tags |
epub files, validation, validation epub links |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ePub validation problems | robcub | ePub | 12 | 02-04-2011 05:04 AM |
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 |
Epub validation problem | silentobserver | ePub | 3 | 08-16-2010 12:51 AM |
Epub Validation Problems | crestfalleen | Calibre | 6 | 08-02-2010 09:43 PM |