|
|
Thread Tools | Search this Thread |
09-15-2020, 10:19 PM | #1 |
Member
Posts: 17
Karma: 10
Join Date: Jan 2011
Device: Mac, VM solutions
|
epubcheck ERROR: Links points to a location not present in target file
Hi: I am very new to epub creation. New to Sigil. New to forum posting.
Please let me know, if I have not posted in correct place. I ran the epubchecker on my new epub and receive many many errors. Very disheartening given I thought it was wonderful before running this epub checker. The problem is now, I dont understand how to fix. Lets take the most common one "Links points to a location not present in the target file" Given I created this epub by taking the html from web page, I did expect errors, but not many many. By word Link, I am assuming epubchecker mean a HTML is not correct sytax (?ill formed) rather than an actual URL link (hyperlink) not working. for example Code:
<div class="div1 "><a name="subj-ISBN-chapter-6-div1-1"></a> <h2 class="titleHeading2"><p class=" " id="subj-isbn-chapter-6-p-892">Introduction</p></h2> How do I manually test a "link"? I am much better seeing things real live to understand mechanics. If you think you can help me become less muddled -- I would value it very much. Thankyou. |
09-16-2020, 11:11 AM | #2 |
A Hairy Wizard
Posts: 3,094
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Typically a "link" is referencing the '<a href=""></a>' tag.
The error code is telling you that the href="" is not pointing to, or can't be found in, the correct location. Here is a reference to look up the particulars. In general you want it to look like: <a href="#mylink">Go to my linked location.</a> <p id="mylink">This is my linked location.</p> - or, if it is on a different document: <a href="htmlpage.html#mylink">Go to my linked location on a different document.</a> It is important to note that the href and id must have the identical name...and it is case sensitive. So ISBN and isbn are NOT the same. Last edited by Turtle91; 09-16-2020 at 12:28 PM. |
Advert | |
|
09-16-2020, 11:52 AM | #3 |
Grand Sorcerer
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
|
09-16-2020, 12:10 PM | #4 |
Resident Curmudgeon
Posts: 73,970
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
do you really name the <a>? It is an ePub and there are better ways to get to the TOc.
Code:
<div class="div1 "><a name="subj-ISBN-chapter-6-div1-1"></a> <h2 class="titleHeading2"><p class=" " id="subj-isbn-chapter-6-p-892">Introduction</p></h2> Code:
<div class="div1"><a name="subj-ISBN-chapter-6-div1-1"></a> <h2 class="titleHeading2"><p id="subj-isbn-chapter-6-p-892">Introduction</p></h2> |
09-16-2020, 12:28 PM | #5 |
A Hairy Wizard
Posts: 3,094
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
|
Advert | |
|
09-16-2020, 01:56 PM | #6 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
BTW, both Calibre Editor and Sigil have built-in tools that you can use to check for broken links (Tools > Reports > Links). Also, you might want to consider using dedicated browser extensions such as DownThemAll! to download the initial HTML file. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
epubcheck error on svg file | roger64 | Workshop | 2 | 10-16-2016 05:49 AM |
[Check Book] Link points to a location not present in the target file | chaot | Editor | 3 | 11-05-2015 04:25 PM |
Error epubcheck | Buble | ePub | 43 | 08-15-2014 01:53 AM |
Error on epubcheck | Brazz | ePub | 5 | 09-01-2011 03:17 AM |
Web Companion - "Error while copying the prc file to its target folder." | evanj | Workshop | 0 | 11-28-2005 06:10 AM |