mxp1988 / epubcheck

Automatically exported from code.google.com/p/epubcheck
MIT License
0 stars 0 forks source link

Spine containing same spine item multiple times does not generate error/alert #182

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
PROBLEM:

When validating against EPUB version 2.0, epubcheck will not alert that a 
specific spine item appears more than once in spine, which OPF 2.0.1 explicitly 
prohibits:

> In addition, a specific spine item (from the perspective of its id attribute 
value in manifest) must not appear more than once in spine.

Not that I agree one bit with this rule (what if a same resource should be 
indeed shown several times throughout the books' reading order; this is bonding 
e-books to pointless paper-based rules), but at any rate it is that is what the 
spec says.

METHOD:

1. Create an EPUB 2, the OPF document of which contains a spine which lists the 
item twice, like:

      <itemref idref="chapter1"/>
      <itemref idref="chapter2"/>
      <itemref idref="chapter1"/>

2. Run epubcheck on it.

RESULT:

epubcheck will report:

> No errors or warnings detected

EXPECTED:

I expected epubcheck to report:

> Spine item "chapter1" appears more than once in spine.

PLATFORM:

epubcheck 3.0b5, Mac OS 10.7.4

Original issue reported on code.google.com by elmi...@gmail.com on 24 May 2012 at 9:07

GoogleCodeExporter commented 8 years ago

Original comment by markus.g...@gmail.com on 1 Oct 2012 at 7:41

GoogleCodeExporter commented 8 years ago

Original comment by markus.g...@gmail.com on 11 Oct 2012 at 6:19

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r348.

Original comment by markus.g...@gmail.com on 11 Oct 2012 at 6:37