amaresh19 / epubcheck

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

Same reference entry in OPF <guide> ignored. #299

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
PROBLEM:

I am not sure if this is a problem at all, or if this can be ignored.  Couldn't 
find anything mentioned in the standard.  The "problem" occurred for me when I 
generated a EPUB using a script of mine with a bug, and that resulted in 
generating a OPF guide element with the same reference entry multiple times:

  <guide>
    <reference type="cover" title="Cover Page" href="cover.html" />
    <reference type="start" title="Start Page" href="cover.html" />
    <reference type="start" title="Start Page" href="cover.html" />
    <reference type="start" title="Start Page" href="cover.html" />
    <reference type="start" title="Start Page" href="cover.html" />
  </guide>

There was no warning that this had occurred.

METHOD:

What steps will reproduce the problem?
1. Attached EPUB contains a document which validates using epubcheck 3.0.1
2. Unpack it, take a look at OEBPS/content.opf
3. Behold multiple entries.

RESULT:

Nothing.

EXPECTED:

A warning would have made sense, but I am not sure if one would be justified.

PLATFORM:

Latest epubcheck 3.0.1 on Mac.

java version "1.6.0_51"
Java(TM) SE Runtime Environment (build 1.6.0_51-b11-456-10M4508)
Java HotSpot(TM) Client VM (build 20.51-b01-456, mixed mode)

ADDITIONAL INFO:

Attached is a test EPUB.

Original issue reported on code.google.com by jens.tro...@gmail.com on 21 Aug 2013 at 10:10

Attachments:

GoogleCodeExporter commented 9 years ago
The epub 2.0 standard doesn't say anything about multiple references with the 
same type: http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6

However, I have to agree with you, that this should at least throw a HINT or a 
WARNING.

Original comment by tobias.c...@gmail.com on 24 Sep 2013 at 5:50

GoogleCodeExporter commented 9 years ago
THIS ISSUE MOVED TO GITHUB:
https://github.com/IDPF/epubcheck/issues/

Original comment by rdeltour@gmail.com on 7 Nov 2013 at 10:49