daniel782 / epubcheck

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

Valildation error question: how to deal with -- href="frontmaterial.html#copyright_page" #83

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
epubcheck v1.1 reports some errors and warnings that v1.0.5 let slide

Epubcheck Version 1.1-rc1

ERROR: SJLI5Q.epub/OEBPS/content.opf(351): File listed in reference element in 
guide was not declared in OPF manifest: OEBPS/frontmaterial.html#title_page 
ERROR: SJLI5Q.epub/OEBPS/content.opf(352): File listed in reference element in 
guide was not declared in OPF manifest: OEBPS/frontmaterial.html#copyright_page

in my .opf file

<manifest>

<!-- HTML content files mandatory? -->
<item id="content_1" media-type="application/xhtml+xml" 
href="frontmaterial.html"/>
...
<guide>

<reference type="cover" title="Cover" href="cover.html" /> <reference 
type="title-page" title="Title" href="frontmaterial.html#title_page"/> 
<reference type="copyright-page" title="Copyright" 
href="frontmaterial.html#copyright_page"/>
...
Is my <reference> invalid? How should I express it?

Peter

Original issue reported on code.google.com by Peter.Ho...@gmail.com on 26 Oct 2010 at 5:26

GoogleCodeExporter commented 8 years ago
No, this is a real bug that needs addressing.  Thank you for the report.

Original comment by liza31337@gmail.com on 27 Oct 2010 at 10:21

GoogleCodeExporter commented 8 years ago

Original comment by abdela...@gmail.com on 1 Nov 2010 at 11:27

GoogleCodeExporter commented 8 years ago
This is fixed in 1.1 RC2. Please mark as "Verified" if this addresses your case.

Original comment by liza31337@gmail.com on 8 Nov 2010 at 7:39

GoogleCodeExporter commented 8 years ago
Better, but not yet fixed.

Here's my guide section
<guide>
        <reference type="cover" title="Cover" href="cover.html" />
        <reference type="title-page" title="Title" href="frontmaterial.html#title_page"/>
        <reference type="copyright-page" title="Copyright" href="frontmaterial.html#copyright_page"/>
        <reference type="toc" title="Table of Contents" href="toc.html#toc"/>
        <reference type="text" title="Startup Page" href="intro.html#start"/>
        <reference type="acknowledgements" title="Acknowledgements" href="backmaterial.html#acknowledgements_page"/>
        <reference type="find" title="Find" href="toc.html#toc"/>
</guide>

Notice that 'frontmaterial.html' has two 'compound hrefs' 

And two error messages are generated
ERROR: SJLI5Q.epub/OEBPS/content.opf(98): duplicate resource: 
OEBPS/frontmaterial.html
ERROR: SJLI5Q.epub: could not parse OEBPS/frontmaterial.html: duplicate id: 
title_page

Original comment by Peter.Ho...@gmail.com on 8 Nov 2010 at 8:44

GoogleCodeExporter commented 8 years ago
Thanks for regressing the issue. Could you paste the entire OPF file (or send 
it to liza@threepress.org if you don't want to post it here)?

Original comment by liza31337@gmail.com on 8 Nov 2010 at 8:46

GoogleCodeExporter commented 8 years ago

Original comment by liza31337@gmail.com on 8 Nov 2010 at 8:46

GoogleCodeExporter commented 8 years ago
Thanks, received the full sample and we'll patch this as well.

Original comment by liza31337@gmail.com on 8 Nov 2010 at 9:08

GoogleCodeExporter commented 8 years ago
This was not a bug; confirmed by the original reporter.

Original comment by liza31337@gmail.com on 17 Nov 2010 at 6:34