View Single Post
Old 12-20-2018, 01:36 AM   #3
odedta
Addict
odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.
 
Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
Hello David and thank you very much for taking the time to try and help!

I use Calibre to generate TOC since it's so handy :-)
My TOC file looks like this:

Code:
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xmlns:ibooks="http://vocabulary.itunes.apple.com/rdf/ibooks/vocabulary-extensions-1.0" epub:prefix="ibooks: http://vocabulary.itunes.apple.com/rdf/ibooks/vocabulary-extensions-1.0">

<head>
  <title>Book title</title>
  <link href="../css/styles.css" rel="stylesheet" type="text/css"/>
</head>

<body xml:lang="he" dir="rtl">

  <nav id="toc" epub:type="toc">
    <ol>
      <li>
        <a href="intro.xhtml">Intro</a>
        <ul>
          <li><a href="intro_1.xhtml#toc_1">TakeMeThere</a></li>
        </ul>
      </li>
    </ol>
   </nav>
</body>
</html>
Declaration in content.opf:
Code:
<item href="text/toc.xhtml" id="nav" media-type="application/xhtml+xml" properties="nav"/>
So from what I understand there seems to be no way to get the reader to jump to the right location?

P.S:
Did you use
Code:
<!doctype html>
on purpose? I don't see the point since this file extension is xhtml and not html(5).

Thanks again!
odedta is offline   Reply With Quote