Bogus "fragment identifier is not defined" error?

1,480 views
Skip to first unread message

Keith Fahlgren

unread,
Mar 9, 2008, 1:41:14 PM3/9/08
to epub...@googlegroups.com
Hi,

A minimal .epub file with mock footnotes
(http://kfahlgren.com/frag_id_broke.epub) raises the following error
with epubcheck:

OEBPS/index.html(4): 'ftn.id962795': fragment identifier is not
defined in 'OEBPS/index.html'

Can someone explain why that error would be thrown when there is an
item with id="ftn.id962795" in OEBPS/index.html?

OEBPS/index.html:
36 <p>Just a normal paragraph with a footnote<sup>[<a
id="id962784" href="#ftn.id962784" class="footnote">1</a>]</sup>.</p>
...
75 <div class="footnote">
76 <p><sup>[<a id="ftn.id962784" href="#id962784"
class="para">1</a>] </sup>This is the
77 footnote.</p>
78 </div>


Thanks,
Keith

garth...@gmail.com

unread,
Mar 9, 2008, 2:46:41 PM3/9/08
to epubcheck
The error in question from epubcheck is:

target.epub/OEBPS/index.html(4): 'ftn.id962795': fragment identifier
is not defined in 'OEBPS/index.html'

If you search for "ftn.id962795" in the source, you find only:

<sup>[<a id="id962795" href="#ftn.id962795" class="footnote">2</a>]</
sup>

(if some line endings are added, you will find the this is the line
that is being complained about)

The two defined footnote targets are:

<sup>[<a id="ftn.id962830" href="#id962830" class="para">a</a>] </sup>
<sup>[<a id="ftn.id962784" href="#id962784" class="para">1</a>] </sup>

So, the error is correct, there is no element in the source with
'id="ftn.id962795"'.

Best,
Garth

Keith Fahlgren

unread,
Mar 9, 2008, 2:57:07 PM3/9/08
to epub...@googlegroups.com
On Sun, Mar 9, 2008 at 10:46 AM, <garth...@gmail.com> wrote:
>
> The error in question from epubcheck is:
>
> target.epub/OEBPS/index.html(4): 'ftn.id962795': fragment identifier
>
> is not defined in 'OEBPS/index.html'
>
> If you search for "ftn.id962795" in the source, you find only:
>
> <sup>[<a id="id962795" href="#ftn.id962795" class="footnote">2</a>]</
> sup>

Bah, sorry. Apparently not enough coffee...


Keith

Reply all
Reply to author
Forward
0 new messages