View Full Version : ePubcheck 1.1/1.2 Validation line number


steventaylor
07-28-2012, 02:21 AM
Upon running a validation check through Windows command line, I noticed for each error, regardless of the type, there is the same line number which makes it extremely difficult to locate. I've tried this on both OSX and Windows using ePubcheck versions 1.1 & 1.2 with the same results. Here is the output:

ERROR: C:\Users\Dropbox\Textbook EPUBs\Basics of Chemistry.epub
/epub/gob-ch20_s06.html(3): element "p" not allowed here; expected the element e
nd-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", "stron
g", "sub", "sup", "tt" or "var" (with xmlns:ns="http://www.w3.org/2000/svg")
ERROR: C:\Users\Dropbox\Textbook EPUBs\Basics of Chemistry.epub
/epub/gob-ch20_s06.html(3): element "p" not allowed here; expected the element e
nd-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", "stron
g", "sub", "sup", "tt" or "var" (with xmlns:ns="http://www.w3.org/2000/svg")
ERROR: C:\Users\Dropbox\Textbook EPUBs\Basics of Chemistry.epub
/epub/gob-ch20_s06.html(3): element "p" not allowed here; expected the element e
nd-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", "stron
g", "sub", "sup", "tt" or "var" (with xmlns:ns="http://www.w3.org/2000/svg")
ERROR: C:\Users\Dropbox\Textbook EPUBs\Basics of Chemistry.epub
/epub/gob-ch20_s06.html(3): element "p" not allowed here; expected the element e
nd-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", "stron
g", "sub", "sup", "tt" or "var" (with xmlns:ns="http://www.w3.org/2000/svg")

ERROR: C:\Users\Dropbox\Textbook EPUBs\Basics of Chemistry.epub
/epub/gob-ch01_s02.html(3): 'gob-ch01_s01_f02': fragment identifier is not defin
ed in 'epub/gob-ch01.html'
ERROR: C:\Users\Dropbox\Textbook EPUBs\Basics of Chemistry.epub
/epub/gob-ch03_s04.html(3): 'gob-ch03_s03_s01_t01': fragment identifier is not d
efined in 'epub/gob-ch03_s03.html'
ERROR: C:\Users\Dropbox\Textbook EPUBs\Basics of Chemistry.epub
/epub/gob-ch03_s04.html(3): 'gob-ch03_s03_s01_t01': fragment identifier is not d
efined in 'epub/gob-ch03_s03.html'
ERROR: C:\Users\Dropbox\Textbook EPUBs\Basics of Chemistry.epub
/epub/gob-ch03_s04.html(3): 'gob-ch03_s03_s01_t01': fragment identifier is not d
efined in 'epub/gob-ch03_s03.html'
ERROR: C:\Users\Dropbox\Textbook EPUBs\Basics of Chemistry.epub
/epub/gob-ch03_s04.html(3): 'gob-ch03_s02_s02_f02': fragment identifier is not d
efined in 'epub/gob-ch03_s02.html'
ERROR: C:\Users\Dropbox\Textbook EPUBs\Basics of Chemistry.epub
/epub/gob-ch04_s02.html(3): 'gob-ch03_s03_s01_t01': fragment identifier is not d
efined in 'epub/gob-ch03_s03.html'

Jellby
07-28-2012, 05:44 AM
Maybe the file has no linebreaks (or they are not in a format recognized by epubcheck), so everything is in the same line.

Jesver
07-30-2012, 12:46 PM
Hi,

I think you are used <p> element with in <p>. So kindly check this. this not allowed.

Second one is link problem,
You have to create id first. If idref's called in in same file, you have code: <a href= #id">----</a>. if other file <a href= 1.html#id">---</a>.

steventaylor
08-08-2012, 06:40 PM
Thanks for your responses. The bulk of the work was fixing the unique ID errors (reported by Sigil/Flightcrew) which were referring to duplicate ID's in just about every file. Once this was completed, miraculously, all other errors were dropped from ePubCheck. As strange as this is, it's why I use ePubCheck with Flightcrew.