Closed GoogleCodeExporter closed 8 years ago
I have similar problem. My cover file (attached) generate this errors:
Epubcheck Version 1.2
ERROR: zycie_w_mocy_boga_wyd2.epub/titlepage.xhtml(8): element "img" 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")
ERROR: zycie_w_mocy_boga_wyd2.epub/titlepage.xhtml(9): element "body"
incomplete; 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")
Check finished with warnings or errors!
Original comment by Codzienn...@gmail.com
on 24 Jul 2011 at 8:54
Attachments:
Btw, in Aldiko and in Calibre all works fine.
Original comment by Codzienn...@gmail.com
on 24 Jul 2011 at 8:55
For titlepage.xhtml, the img element is not allowed as direct child of body
element in XHTML 1.1. The img element needs to be inside a div or p or
something.
I find it helpful to use a text editor that includes HTML validation features.
--Dave Cramer
Original comment by dau...@gmail.com
on 26 Jul 2011 at 2:24
The comment posted on 2011-07-25 provides a partial resolution to this issue.
The <img> element is not allowed as a direct child of the <body> element, hence
the error "element "img" not allowed here".
In addition, the first portion of the error message in the original issue
report, "text not allowed here", indicates that there is text node content
outside of an element, which is also illegal in XHTML 1.1. Text nodes should be
the child of an element such as <div> or <p>.
Original comment by danielpa...@hotmail.com
on 1 Sep 2011 at 10:35
Original issue reported on code.google.com by
dlcocc...@gmail.com
on 19 Jul 2011 at 4:06