View Full Version : PROBLEM TOC VALIDATION ERROR IN SIGIL


Ibn
06-05-2012, 10:23 AM
Hello everybody,

I have created an epub book which works great in my Ipad.
I have first created it whith Sigil and then convert it with Calibre. But when i try to validate it in Sigil (after conversion in Calibre) i have this errors messages (the "titlepage.xhtml" is my cover page and this is also my first Chapter in my Table of contents which works perfectly in my IPAD):

OEBPS/OEBPS/Text/titlepage.xhtml This OPS document is reachable but not present in the OPF <spine>. "Reachable" means that a reference of some kind that points to this resource exists in the epub.
OEBPS/OEBPS/Text/titlepage.xhtml This resource is reachable but not present in the OPF <MANIFEST>. "Reachable" means that a reference of some kind that points to this resource exists in the epub.

I'm a beginner and thank you very much for helping me.
Ibn

HarryT
06-05-2012, 10:24 AM
Please post in the correct forum section. I'm moving your post to the ePub forum.

BryanK
06-05-2012, 12:25 PM
OEBPS/OEBPS/Text/titlepage.xhtml This OPS document is reachable but not present in the OPF <spine>. "Reachable" means that a reference of some kind that points to this resource exists in the epub.
OEBPS/OEBPS/Text/titlepage.xhtml This resource is reachable but not present in the OPF <MANIFEST>. "Reachable" means that a reference of some kind that points to this resource exists in the epub.



Hi Ibn,

That "OEBPS/OEBPS/" looks suspicious. Can you check your content.opf file and see if the reference to your file is:
"OEBPS/Text/titlepage.xhtml"
or
"Text/titlepage.xhtml"

It should probably be the second one unless you had a second OEBPS directory added inside the original OEBPS directory somehow.

Bryan

Ibn
06-05-2012, 12:42 PM
Hi Bryan,
In the content.opf file the reference is :
"Text/titlepage.xhtml"
Thank you

BryanK
06-05-2012, 02:19 PM
Hi Bryan,
In the content.opf file the reference is :
"Text/titlepage.xhtml"
Thank you

Ah, I should probably have guessed that from the fact that it was reachable. If the file is listed in the manifest, then I'm out of ideas and we'll have to wait for someone more knowledgeable than I am to help out.

Toxaris
06-05-2012, 02:48 PM
You should avoid running a conversion of ePUB to ePUB via Calibre. The output out of Sigil should be good enough.

Ibn
06-06-2012, 02:48 AM
Thank you very much for your answers.
I use calibre to delete the lines spacing and to indent the first paragraphs lines.
Well it seems that my problem is about the Table of content. I decided to create it myself in Sigil but when i open it in my IPAD, the title page doesn't appear in the table of content. My title page is also my cover page.
I give you below what i typically have in sigil :
in the toc.ncx :


<?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN" "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd"><ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1">
<head>
<meta content="urn:uuid:4c54ff47-0464-4ee9-8993-5cbd15e79405" name="dtb:uid"/>
<meta content="0" name="dtb:depth"/>
<meta content="0" name="dtb:totalPageCount"/>
<meta content="0" name="dtb:maxPageNumber"/>
</head>
<docTitle>
<text>Try</text>
</docTitle>
<navMap>
<navPoint id="navPoint-1" playOrder="1">
<navLabel>
<text>Title</text>
</navLabel>
<content src="Text/titlepage.xhtml"/>
</navPoint>
</navMap>
</ncx>


And in the content.opf i have :



<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="BookId" version="2.0">
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf">
<dc:identifier id="BookId" opf:scheme="UUID">urn:uuid:4c54ff47-0464-4ee9-8993-5cbd15e79405</dc:identifier>
<dc:title>Try</dc:title>
<dc:language>fr</dc:language>
</metadata>
<manifest>
<item href="toc.ncx" id="ncx" media-type="application/x-dtbncx+xml" />
<item href="Text/titlepage.xhtml" id="titlepage.xhtml" media-type="application/xhtml+xml" />
<item href="Images/cover.jpg" id="cover.jpg" media-type="image/jpeg" />
<item href="Text/Section0001.xhtml" id="Section0001.xhtml" media-type="application/xhtml+xml" />
</manifest>
<spine toc="ncx">
<itemref idref="titlepage.xhtml" />
<itemref idref="Section0001.xhtml" />
</spine>
</package>



Thank you very much for your help.
Ibn

Ibn
06-06-2012, 03:28 AM
Sorry i forgot something :
I tried to type this line in xhtml section :
<h1 title="Title page"><img ... ></h1>
Or this one before my cover page:
<h1 title="Title page"></h1>

It worked in my Ipad and i have my Title page in my Table of Contents BUT when i grow the characters in my Ipad for reading (in ibooks options) the Image of my Title page moves. The more i grow the characters and the more the image is getting down in my Ipad until this image ends up in two pages in the Ipad (one part in one page and the other part in the other page) instead one page as i want.
Thank you very much.
Ibn