Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 01-19-2017, 09:35 AM   #1
Llaird
Junior Member
Llaird began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2017
Device: Kindle Paperwhite
Namespace prefix epub for type on a is not defined...

Hi,

I try to put footnotes in a book...

Code:
  <p>—Jacob Brown<sup><a epub:type="noteref" id="footnoteP1" href="#footnoteRefP1">1</a></sup></p>
the referenced footnote at the end of the same .xhmtl file

Code:
 <li id="bookmarkP1"  epub:type="footnote">
  <p><a href="main-1a.xhtml#bookmarkRefP1" class="reversefootnote" hidden="hidden">↩</a> Adams, <cite>The War of 1812</cite>, p. 256.</p>
  </li>
</ol>
The epub checker shows "ERROR: Parsing failed: Namespace prefix epub for type on a is not defined..." All documentation I found on the web exactly use this pattern to put in footnotes. I'm not sure how to solve the issues. Please help.

Thx

Thomas
Llaird is offline   Reply With Quote
Old 01-19-2017, 09:43 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,258
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You need to add the epub namespace declaration to the <html> tag. Like this

<html xmlns:epub="http://www.idpf.org/2007/ops">
kovidgoyal is offline   Reply With Quote
Advert
Old 01-19-2017, 09:48 AM   #3
Llaird
Junior Member
Llaird began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2017
Device: Kindle Paperwhite
Just noticed it myself. Thx for the help...
Llaird is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Validating Fixed Layout Epub 3.0 Error no viewport defined ralphiedee ePub 1 12-09-2016 12:15 PM
error on line 12 at column 82: Namespace prefix 'o' not declared GentlemanGamer Sigil 6 08-30-2016 10:05 PM
Error: Namespace prefix opf for scheme on identifier is not defined uwe4711 Conversion 4 09-26-2013 12:44 PM
MP3 defined in opf as media-type="text/plain LGN Sigil 5 04-26-2013 03:38 PM
Help with Apple error - ERROR ITMS-9000: ".epub: wrong namespace in filename.epub fil muzammil ePub 1 11-30-2012 05:25 AM


All times are GMT -4. The time now is 11:39 PM.


MobileRead.com is a privately owned, operated and funded community.