daniel782 / epubcheck

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

Need help with EPUB validation errors. #110

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
PROBLEM: Please help understanding the EPub validation errors.

Here they are:
ERROR: 
magic-by-moonlight.epub/tmp_8f35b4464be7fb148563736a1c6c79c2_HmADUk.ch.fixed.fc.
tidied.stylehacked.xfixed_split_013.html(21): text 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") 
2. ERROR: 
magic-by-moonlight.epub/tmp_8f35b4464be7fb148563736a1c6c79c2_HmADUk.ch.fixed.fc.
tidied.stylehacked.xfixed_split_013.html(21): element "img" 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") 
3. Check finished with warnings or errors! 

Any help would be appreciated. I don't know what to do.
Thanks. Debbie

Original issue reported on code.google.com by dlcocc...@gmail.com on 19 Jul 2011 at 4:06

GoogleCodeExporter commented 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:

GoogleCodeExporter commented 8 years ago
Btw, in Aldiko and in Calibre all works fine.

Original comment by Codzienn...@gmail.com on 24 Jul 2011 at 8:55

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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