Skip to content

Empty spine section #8

Open
yacool opened this Issue Jul 12, 2011 · 2 comments

3 participants

@yacool
yacool commented Jul 12, 2011

Hi.

I have an issue with some sort of epub files. In the spine section there are items with ids like that:

<spine toc="ncx">
    <itemref idref="titlepage"/>
    <itemref idref="id116"/>
    <itemref idref="id115"/>
    <itemref idref="id114"/>
...

in the manifest section they have:

<manifest>
   <item href="titlepage.xhtml" id="titlepage" media-type="application/xhtml+xml"/>
    <item href="index_split_000.xhtml" id="id116" media-type="application/xhtml+xml"/>
    <item href="index_split_001.xhtml" id="id115" media-type="application/xhtml+xml"/>
    <item href="index_split_002.xhtml" id="id114" media-type="application/xhtml+xml"/>
...

...

The problem is that (i think) as soon as the id is no file name - i got empty spine collection after executing:
spine.getSpineReferences().size() <<< 0!

In files which has spine itemref definitions like following - thre is no such problem

According to a specification i found on
http://idpf.org/epub/30/spec/epub30-publications.html#elemdef-package-item
there is no need to naming idref with file names. Is there any other explanation of this problem?

@psiegman
Owner

Hi Yacool,

I tried to reproduce the problem but it works perfectly fine for me.
I ran the EpupWriterTest included with epublib, which generates ids like "item_1", etc and the spine has the correct amount of items.

Could you send me the book that isn't working ?

regards,
Paul

@akyl01
akyl01 commented Mar 7, 2012

I don't think this should be possible if there is an actual eBook. However, it is possible to have no table of contents if the .opf file is not found in the directories of the epub book.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.