Thread: Validating Epub
View Single Post
Old 07-08-2015, 02:32 AM   #5
senhal
Connoisseur
senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.
 
senhal's Avatar
 
Posts: 82
Karma: 25684
Join Date: Sep 2014
Device: Kindle NT
Why not including also epub-check validation?

Quote:
Originally Posted by kovidgoyal View Post
Check Book is designed to warn you of problems that might actually affect the working of your book on real world devices, unlike epubcheck and flight crew, which mostly perform useless schema validation.
I'm not an expert, but I think that some of these errors could affect...

Code:
<p><p>text</p></p>
element "p" not allowed here

Code:
<p>text</p><img alt="img" src="img01.png" />
or
<i><p>text</p></i>
or
<p><div>text</div></p>
element "img"/"i"/"div" not allowed here

Code:
<p><font size="2">text</font></p>
or
.font{size:2}
element "font" not allowed anywhere

Code:
<navMap><navPoint id="num_1" playOrder="2">
  • assertion failed: the first playOrder value is not 1
  • assertion failed: playOrder sequence has gaps

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Irregular DOCTYPE

Code:
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="uuid-id" version="1.0">
Version not supported

Code:
<img src="img01.png" />
element "img" missing required attribute "alt"

Quote:
metadata without language or title
element "metadata" incomplete; missing required element

Code:
ncx:
<meta content="b" name="dtb:uid"/>
opf:
<dc:identifier opf:scheme="uuid" id="uuid_id">a</dc:identifier>
meta@dtb:uid content 'b' should conform to unique-identifier in content.opf: 'a'

Code:
<navPoint id="num_1" playOrder="1">
...
<navPoint id="num_2" playOrder="1">
identical playOrder values for navPoint/navTarget/pageTarget that do not refer to same target

Code:
preserveAspectRatio="yes"
value of attribute "preserveAspectRatio" is invalid

Last edited by senhal; 07-08-2015 at 03:17 AM.
senhal is offline   Reply With Quote