epub toc error

879 views
Skip to first unread message

David Prendergast

unread,
Apr 18, 2017, 5:49:28 PM4/18/17
to epubcheck
ok guys

have put together an epub file. All is ok and passes the validator until I add in a toc.xhtml at the beginning of the book. I know the issue is the toc.xhtml file but can work out how to resolve it simply. I just want the toc in the front of the book as the author requested. see the file attached and see below error message. 

Hope someone can help please!!

David

Error while parsing file 'element "a" not allowed here; expected the element end-tag or element "address", "blockquote", "del", "div", "dl", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ins", "noscript", "ns:svg", "ol", "p", "pre", "script", "table" or "ul" (with xmlns:ns="http://www.w3.org/2000/svg")'.

Error while parsing file 'element "p" not allowed here; expected the element end-tag, text or element "a", "abbr", "acronym", "applet", "b", "bdo", "big", "br", "cite", "code", "del", "dfn", "em", "i", "iframe", "img", "ins", "kbd", "map", "noscript", "ns:svg", "object", "q", "samp", "script", "small", "span", "strong", "sub", "sup", "tt" or "var" (with xmlns:ns="http://www.w3.org/2000/svg")'.
Big Game, The - Andrew Rajan.epub

Imsieke, Gerrit, le-tex

unread,
Apr 18, 2017, 6:00:27 PM4/18/17
to epub...@googlegroups.com
Hi David,

The HTML content of toc.xhtml has to be valid XHTML (1.1, for EPUB 2).

Paragraphs wrapped in hyperlinks are not permitted, it has to be wrapped
the other way round. So instead of
<a href="OEBPS/Flow_2.xhtml"><p class="calibre2">Chapter 1</p></a>
just write
<p class="calibre2"><a href="OEBPS/Flow_2.xhtml">Chapter 1</a></p>

Gerrit
> --
> You received this message because you are subscribed to the Google
> Groups "epubcheck" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to epubcheck+...@googlegroups.com
> <mailto:epubcheck+...@googlegroups.com>.
> To post to this group, send email to epub...@googlegroups.com
> <mailto:epub...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/epubcheck.
> For more options, visit https://groups.google.com/d/optout.

--
Gerrit Imsieke
Geschäftsführer / Managing Director
le-tex publishing services GmbH
Weissenfelser Str. 84, 04229 Leipzig, Germany
Phone +49 341 355356 110, Fax +49 341 355356 510
gerrit....@le-tex.de, http://www.le-tex.de

Registergericht / Commercial Register: Amtsgericht Leipzig
Registernummer / Registration Number: HRB 24930

Geschäftsführer: Gerrit Imsieke, Svea Jelonek,
Thomas Schmidt, Dr. Reinhard Vöckler

David Prendergast

unread,
Apr 18, 2017, 6:02:24 PM4/18/17
to epub...@googlegroups.com
Thanks so much Gerrit!!

ah I see what you mean. will try this. should be fine.

David
> To unsubscribe from this group and stop receiving emails from it, send an email to epubcheck+...@googlegroups.com.
> To post to this group, send email to epub...@googlegroups.com.

David Prendergast

unread,
May 1, 2017, 7:01:59 PM5/1/17
to epub...@googlegroups.com
Hi guys

I’m still having ebook issues with what appear to be page breaks within the chapters through the book. I only want a page break after each chapter. Nearly all breaks appear after the code ‘,</span></div><div id=“box3_3373” class=“para-normal-local2”><span class=“char-normal-local3”>

I simply want to replace these with a paragraph break or ideally an actual new line break. Ideally I’d like to replace them globally or some quick way but I see each one has a different number ie. box3_3373

I must add that in calibre file viewer/Sigil viewer AND Kindle Previewer 3 everything looks fine but in Ibooks viewer I see the gaps. Maybe its just an issue with the Ibooks viewer and I’m making a big deal out of nothing.

If I have to do each one manually how can I change even one of these manually?

Help please!!

thanks

David
Big Game, The - Andrew Rajan.epub
Reply all
Reply to author
Forward
0 new messages