4 Replies Latest reply: Feb 27, 2013 12:55 PM by Ineptgrafik
ralphiedee Level 2 Level 2 (335 points)

I keep getting this erro when uploading a fixed layout epub thru I Tunes Producer. I read a link here

 

https://discussions.apple.com/thread/4188821?start=0&tstart=0

 

which has a similar problem but that error is mentioning Guide as mine mentions Landmark

 

According to that link the information below, inside the content.opf file

 

 

 

<guide>

    <reference type="cover" title="Cover" href="html/cover.html" />

    <reference type="text" title="Page1" href="html/page1.html" />

</guide>

</package>

 

must be replaced, with what?

 

also is that it or do I need to recode more?

 

The epub has the following docs

 

content.opf

toc.ncx

all the xhtml pages, images, styles and META-INF folder.

 

any help here?

 

RD


Mac Pro, Mac OS X (10.7.2), Mac Pro 8 Core
  • ralphiedee Level 2 Level 2 (335 points)

    After thorougly reading the info in that link I see that my content.opf is in epub 2.0

     

    <?xml version="1.0"?>

    <package xmlns="http://www.idpf.org/2007/opf" xmlns:dc="http://purl.org/dc/elements/1.1/" unique-identifier="bookid" version="2.0">

     

    and the guide at the bottom is as follows

     

    <guide>

    <reference type="cover" href="images/Kindlefront_cover_1562x2500.jpg"/>

    </guide>

    </package>

     

    Can someonr let me know what I need to change or edit?

     

    RD

  • ralphiedee Level 2 Level 2 (335 points)

    Maybe I did not explain correctly. let me try again.

     

    The error is 5107 Landmarks, the link with info I found mentions the same error but instead of landmarks it says guide.

     

    I did find a sample for using the Landmarks code

     

    <nav epub:type="landmarks"> <h2>Guide</h2> <ol> <li><a epub:type="toc" href="#toc">Table of Contents</a></li> <li><a epub:type="loi" href="content.html#loi">List of Illustrations</a></li> <li><a epub:type="bodymatter" href="content.html#bodymatter">Start of Content</a></li> </ol> </nav>

    what is confusing me is this book is a fixed layout picture book with no TOC, no tables. Do I leave my guide as is?

     

    <guide>

        <reference type="cover" title="Cover" href="html/cover.html" />

        <reference type="text" title="Page1" href="html/page1.html" />

    </guide>

     

    and add the landmark code in the content.opf

     

    sample code - landmark

     

    <nav epub: type="landmarks"> <h2>Guide</h2> <ol> <li><a epub type=toc href=toc"> Table of Contents</a></li>

    <a epub:type="loi" href="content.html#loi">

    List of Illustrations</a></li> <li><a epub:type="bodymatter" href="content.html#bodymatter">Start of Content</a></li> </ol> </nav>

     

    add it this way?

     

    <nav epub: type="landmarks">

     

    <h2>

    <reference type="cover" title="Cover" href="html/cover.html" />

        <reference type="text" title="Page1" href="html/page1.html" />

    </h2>

     

    what do I do here?

     

    <a epub:type="loi" href="content.html#loi">

    List of Illustrations</a></li> <li><a epub:type="bodymatter" href="content.html#bodymatter">Start of Content</a></li> </ol> </nav>

     

    Any help?

     

    R

  • ralphiedee Level 2 Level 2 (335 points)

    I copied the above discussion from another section in the forum, below is the updated info as I did not mean to copy all that.

     

    I know now I need to update the <navmap> with the landmarks code, my question NOW is how as I got a parsing error when I tried to upload thru ITP

     

    original <navMap> in my toc.ncx

     

    <navMap>

    <navPoint id="p1" playOrder="1">

    <navLabel><text>Cover</text></navLabel>

    <content src="html/cover.html" />

    </navPoint> 

    </navMap>

    </ncx>

     

     

    I then changed to

     

    <nav epub:type="landmarks">

    <navPoint id="p1" playOrder="1">

    <navLabel><text>Cover</text></navLabel>

    <content src="html/cover.html" />

    </navPoint> 

    </nav>

    </ncx>

     

    This obviously is not correct, any help here ???

  • Ineptgrafik Level 1 Level 1 (0 points)

    In case someone else stumble upon this problem, here is a partial solution:

     

    I only got the «landmark» error with epub 3  fixed layout.

    epub3 documents require TWO toc files:

    the old toc.ncs files which is used for retro-compatibility,

    and the new toc.html file which is an full fledged html file that includes an html5 nav tag.

     

    Your error ralphiedee is that you put the landmark nav in the toc.ncx file. You should have created a new html file named «toc.html» wich could look like this:

     

    <?xml version="1.0" encoding="UTF-8"?>

    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">

    <head>

      <title></title>

      <link href="style.css" media="all" rel="stylesheet" type="text/css" />

    </head>

    <body>

     

    <nav id="toc" epub:type="toc"  >

    <ol>

    <li id="cover"><a href="cover.xhtml">Cover</a></li>

    <li id="chapter1"><a href="1.xhtml">Chapter 1</a></li>

    </ol>

    </nav>

     

    <nav  epub:type="landmarks">

    <ol>

    <li><a href="cover.xhtml" epub:type="cover">Cover</a></li>

    <li><a href="1.xhtml" epub:type="bodymatter">Chapter 1</a></li>

    </ol>

    </nav>

     

    </body>

    </html>

     

     

     

    Now I said it is a partial solution, because, as you can see, the table of content is duplicated. This works, but it is not perfect yet.