Article 4YQ7D epub validator question

epub validator question

by
rblampain
from LinuxQuestions.org on (#4YQ7D)
I have a 600K HTML5 file with a very large TOC all validating under the W3C HTML validator but the EPUB validator finds errors in the conversion of this file into an EPUB file by Calibre.
The no 4 of the unzipped EPUB file is the first (repeated on every "a tag") to be found incorrect at line 11 by the EPUB validator and I have no idea what the problem could be. This split section of EPUB file in turn does not trigger any error on line no 11 by W3C HTML validator although it complained twice about line no 1.

The error code is:
Code:Error while parsing file: element "a" not allowed here; expected 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")And the converted HTML code is:
Code:01 <?xml version='1.0' encoding='utf-8'?>
02 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" dir="ltr" xml:lang="en">
03 <head>
04 <title>My Title Here.</title>
05 <meta name="description" content="My metadata here."/>
06 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
07 <link href="stylesheet.css" rel="stylesheet" type="text/css"/>
08 <link href="page_styles.css" rel="stylesheet" type="text/css"/>
09 </head>
10 <body class="calibre pcalibre">
11 <a id="My_Link_Here" class="pcalibre"><h1 class="pcalibre h1nopba" id="calibre_pb_4">My Link Here<br class="pcalibre calibre3"/>Table Of Content</h1></a>
12 </body></html>Can anyone suggest what the error is?

Thank you for your help.latest?d=yIl2AUoC8zA latest?i=1F-zyTj6Nzs:ufJBQosItxY:F7zBnMy latest?i=1F-zyTj6Nzs:ufJBQosItxY:V_sGLiP latest?d=qj6IDK7rITs latest?i=1F-zyTj6Nzs:ufJBQosItxY:gIN9vFw1F-zyTj6Nzs
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments