Creating Epub links back to Internal TOC

Learn / Forums / EPUB and eBook / Creating Epub links back to Internal TOC

Viewing 0 reply threads
  • Author
    Posts
    • #60491
      Printed Page
      Member

      Coming out of lurkingdom… :)

      Hi…I'm tearing my hair out on this one and hoping someone can help me out.

      I've been through Anne-Marie's great tutorial on CS5.5 to Epub, etc. and it has helped immensely. However, I'm still trying to accomplish something at a client's request

      The book being converted to an epub is a simple fiction title with chapter heading, body text and a section break. It's all in one Indesign CS5.5 file and I can create the Nav TOC reasonably cleanly as well as an internal linked TOC that works great to jump from chapter to chapter inside the epub.

      The client wants to be able to go from any chapter title BACK to the Contents page and I can get it to “work” functionally in ADE by adding a text anchor (called Contents) and hyperlinking the chapters back to the text anchor. Looks great, works great, but it fails epubcheck and CoreSource's checker with the following information occuring in each chapter html file (obviously the “-3.html” filename changes every chapter.)

    • ERROR: A-Spark-of-Death999.epub/OEBPS/A-Spark-of-Death55-3.html(11): 'Contents': fragment identifier is not defined in 'OEBPS/A-Spark-of-Death55-2.html'
    • I know fixing the one problem will fix it in all chapters, but I know enough about html to be dangerous and had hoped that this link back would work right out of InDesign and minimize the html cleanup that I had to do. I know there is cleanup to be done, but with this error, I don't know what to fix.

      Here's line 11 of the one of the numbered HTML chapter files that appears to be where the error occurs:

      <p id=”toc_marker-6″ class=”ct”><a href=”A-Spark-of-Death55-2.html#Contents”>Chapter One</a></p>

      And here's some of the html file that has the internal contents information. I can see that the bolded line doesn't follow format with the others:

      <head>
      <title>A-Spark-of-Death55-2.html</title>
      <link href=”template.css” rel=”stylesheet” type=”text/css”/>
      </head>
      <body>
      <div id=”A-Spark-of-Death55-2.html” xml:lang=”en-US”>
      <div class=”Basic-Text-Frame”>
      <p id=”toc_marker-3″ class=”ct”>Contents</p>
      </div>
      <div class=”story”>
      <p class=”ct”></p>
      <p class=”Contents-Entry”><a href=”A-Spark-of-Death55.html#toc_marker-1″></a></p>
      <p class=”Contents-Entry”><a href=”A-Spark-of-Death55-1.html#toc_marker-2″></a></p>
      <p class=”Contents-Entry”><a href=”#toc_marker-3″>Contents</a></p>
      <p class=”Contents-Entry”><a href=”A-Spark-of-Death55-3.html#toc_marker-4″>Dedication</a></p>
      <p class=”Contents-Entry”><a href=”A-Spark-of-Death55-4.html#toc_marker-5″>Acknowledgments</a></p>
      <p class=”Contents-Entry”><a href=”A-Spark-of-Death55-5.html#toc_marker-6″>Chapter One</a></p>
      <p class=”Contents-Entry”><a href=”A-Spark-of-Death55-6.html#toc_marker-7″>Chapter Two</a></p>

      What I don't know is what needs fixing? Does the line above have to refer to the “…Death55-2.html” file AND if so, then what needs to be changed at line 11 in every chapter html file? Is it something I'm doing wrong in InDesign? OR is it something that I just have to plan on editing/fixing in the html files every book?

      Any help is greatly appreciated. I've got dozens of books to convert and this is the only sticking point on the epub end of things (I'll cross the mobi/ibookstore conversion once I've nailed this aspect).

      Lisa

Viewing 0 reply threads
  • You must be logged in to reply to this topic.
>