I have an issue with some sort of epub files. In the spine section there are items with ids like that:
in the manifest section they have:
<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
there is no need to naming idref with file names. Is there any other explanation of this problem?
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 ?
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.