1 Reply Latest reply on Jan 8, 2015 4:26 AM by bst7

    Problem with ePUB TOC export

    bst7

      I'm getting a format error from ePUB Check from the TOC.xhtml file generated by inDesign's ePUB (fixed layout). The format error is also generated when submitting the ePUB book to Apple's iBook store (using iTunes Producer), which uses ePUB check I believe.

       

      I have a TOC with this form:

       

      1. Chapter 1

        1. sub 1

        2. sub 2

      2. Chapter 2, etc...

       

      The error is: element "ol" not allowed here; expected the element end tag or element "li"

       

      The HTML code from the export (I get the same HTML whether I use the bookmarks or the multi level option for the ePUB TOC content)

       

      <h2>Bookmarks</h2>
      <ol>
      <li><a href="Sing-Flowers-4.xhtml">Chapter 1</a></li>
      <li><a href="Sing-Flowers-7.xhtml">Chapter 2</a>
      <ol>
      <li><a href="Sing-Flowers-9.xhtml">Sub 1</a></li>
      <li><a href="Sing-Flowers-21.xhtml">Sub 2</a></li>
      <li><a href="Sing-Flowers-29.xhtml">Sub 3</a></li>
      </ol>
      </li>
      <li><a href="Sing-Flowers-43.xhtml">Chapter 3</a></li>

       

      I think the correct HTML here would be:

      <h2>Bookmarks</h2>
      <ol>
      <li><a href="Sing-Flowers-4.xhtml">Chapter 1</a></li>
      <li><a href="Sing-Flowers-7.xhtml">Chapter 2</a></li>
      <ol>
      <li><a href="Sing-Flowers-9.xhtml">Sub 1</a></li>
      <li><a href="Sing-Flowers-21.xhtml">Sub 2</a></li>
      <li><a href="Sing-Flowers-29.xhtml">Sub 3</a></li>
      </ol>
      <li><a href="Sing-Flowers-43.xhtml">Chapter 3</a></li>

       

      But, I wouldn't have expected inDesign to generate incorrect HTML code???

       

      Also, at least on Yosemite, if I look at the "incorrect" HTML code's TOC, it is drawing fine (properly indenting the subs), but the "correct" HTML actually does NOT indent the subs. The TOC page in the book itself is drawing properly, and the links work.

       

      Thanks!

       

      Bill