{"id":5373,"date":"2011-07-07T18:34:06","date_gmt":"2011-07-07T13:02:17","guid":{"rendered":""},"modified":"2011-07-07T19:02:17","modified_gmt":"2011-07-07T13:02:17","slug":"awesome-epub-er","status":"publish","type":"post","link":"https:\/\/kk.org\/screenpublishing\/awesome-epub-er\/","title":{"rendered":"Awesome EPUB Error of the Day"},"content":{"rendered":"<p><img loading=\"lazy\" alt=\"epub-invalid.jpg\" src=\"https:\/\/kk.org\/screenpublishing\/epub-invalid.jpg\" width=\"143\" height=\"116\" class=\"mt-image-none\" style=\"\" \/><\/p>\n<p><em>ERROR: wtw-intl.epub\/OEBPS\/toc.ncx(110): &#8216;heading_id_17&#8217;: fragment identifier is not defined in &#8216;OEBPS\/Text\/wtw-intl.html&#8217;<\/em><\/p>\n<p>I got this error (actually, like 200 of them) from the <a href=\"http:\/\/threepress.org\/document\/epub-validate\/\">EPUB validator<\/a> that ThreePress <strong>very generously<\/strong> hosts, and also from iTunes Producer when trying to upload a file for the iBookStore. <\/p>\n<p>I tried <a href=\"http:\/\/code.google.com\/p\/flightcrew\/\">FlightCrew<\/a> too, another tool I&#8217;m super happy to have, but got a similarly unhelpful error message:<br \/>\n<em>file: wtw-intl.epub\/OEBPS\/toc.ncx<br \/>\nline: 110<br \/>\nmessage: This <content> element&#8217;s &#8220;src&#8221; attribute value is &#8220;Text\/wtw-intl.html#heading_id_17&#8221;, but an element with an ID the fragment is referring to does not exist in that file.<\/em><\/p>\n<p>OK, that&#8217;s English, but after double-checking the files and values it mentioned, I still couldn&#8217;t identify the problem.<\/p>\n<p>After banging my head against the wall for 30 minutes, I decided to run <a href=\"http:\/\/code.google.com\/p\/sigil\/\">Sigil<\/a>&#8216;s check and discovered a few seemingly unrelated errors. So I closed a couple paragraph tags that were left open (ah, the perils of hand-coding), and corrected a couple of typos in a couple of internal anchored references. I then re-ran the file through EPUB Check and, presto change-o, errors gone. Nothing to do with the table of contents file (toc.ncx), and nothing to do with that particular id value. Yeah, that <em>totally<\/em> makes sense \ud83d\ude42<\/p>\n<p>I&#8217;ve <a href=\"https:\/\/kk.org\/screenpublishing\/2011\/03\/epub_validation.php\">previously mentioned<\/a> the <a href=\"http:\/\/code.google.com\/p\/epubcheck\/wiki\/Errors\">epubcheck wiki<\/a> and the <a href=\"http:\/\/www.mobileread.com\/forums\/forumdisplay.php?f=179\">mobileread epub forum<\/a> as helpful sources of info for error troubleshooting, but I wonder if there are others.<\/p>\n<p>Can anyone recommend any other great diagnostic tools or resources for EPUB errors?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ERROR: wtw-intl.epub\/OEBPS\/toc.ncx(110): &#8216;heading_id_17&#8217;: fragment identifier is not defined in &#8216;OEBPS\/Text\/wtw-intl.html&#8217; I got this error (actually, like 200 of them) from the EPUB validator that ThreePress very generously hosts, and also from iTunes Producer when trying to upload a file for &hellip; <a href=\"https:\/\/kk.org\/screenpublishing\/awesome-epub-er\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"0","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/kk.org\/screenpublishing\/wp-json\/wp\/v2\/posts\/5373"}],"collection":[{"href":"https:\/\/kk.org\/screenpublishing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kk.org\/screenpublishing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kk.org\/screenpublishing\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/kk.org\/screenpublishing\/wp-json\/wp\/v2\/comments?post=5373"}],"version-history":[{"count":0,"href":"https:\/\/kk.org\/screenpublishing\/wp-json\/wp\/v2\/posts\/5373\/revisions"}],"wp:attachment":[{"href":"https:\/\/kk.org\/screenpublishing\/wp-json\/wp\/v2\/media?parent=5373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kk.org\/screenpublishing\/wp-json\/wp\/v2\/categories?post=5373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kk.org\/screenpublishing\/wp-json\/wp\/v2\/tags?post=5373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}