View Full Version : my epub won't validate, please help?


moonmyst532
02-19-2011, 02:17 AM
I'm converting a txt to epub for LULU. I get this when I try to validate the finished file. Could someone tell me what it means and how to fix it?
thanks

Flow Blue 013111 - Unknown.epub is not valid or contains warnings!

ERROR: Flow Blue 013111 - Unknown.epub/content.opf(7): attribute "file-as" from namespace "http://www.idpf.org/2007/opf" not allowed at this point; ignored
ERROR: Flow Blue 013111 - Unknown.epub/index_split_000.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_001.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_002.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_003.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_004.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_005.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_006.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_007.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_008.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_009.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_010.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_011.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_012.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_013.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_014.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_015.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_016.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_017.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_018.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_019.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_020.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_021.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_022.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_023.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_024.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_025.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_026.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_027.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_028.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_029.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_030.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_031.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_032.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_033.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_034.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_035.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/index_split_036.html(5): unfinished element
ERROR: Flow Blue 013111 - Unknown.epub/titlepage.xhtml(14): bad value for attribute "preserveAspectRatio"
Check finished with warnings or errors!

Toxaris
02-19-2011, 05:46 AM
Please use FlightCrew for better messages. The unfinished element are probably tags which are not closed or tags without closing slash.
Tags which do not have a end-tag, like <br>, <hr> and alike must be internally closed. So, <br> must be <br /> and so on.

Jellby
02-19-2011, 07:09 AM
Also, you must close the <head>, <body> and <html> tags, and the preserveAspectRatio values are case-sensitive.

DMSmillie
02-19-2011, 07:22 AM
Definitely second Toxaris' recommendation to use FlightCrew to validate your EPUB - it produces much clearer, easier to understand messages. However, just a brief pointer to what these error messages are saying - they are referring to specific files inside the EPUB file:

ERROR: Flow Blue 013111 - Unknown.epub/content.opf(7): attribute "file-as" from namespace "http://www.idpf.org/2007/opf" not allowed at this point; ignored
On line 7 of the content.opf file, there's an element with the attribute "file-as", but that attribute isn't valid according to the OPF specification referenced at http://www.idpf.org/2007/opf

ERROR: Flow Blue 013111 - Unknown.epub/index_split_000.html(5): unfinished element
On line 5 of the file index_split_000.html there's an HTML element which isn't closed properly. Being so early in the file, there's a good likelihood it's one of the elements in the HEAD section, so probably one of those that needs a closing slash / before the closing angle bracket >. A similar issue is flagged up on line 5 of all the other HTML files inside the EPUB file.

ERROR: Flow Blue 013111 - Unknown.epub/titlepage.xhtml(14): bad value for attribute "preserveAspectRatio"
On line 14 of the file titlepage.xhtml, there's an element which contains the attribute "preserveAspectRatio", but the value given for that attribute is not a recognised or valid value. This attribute usually appears in an SVG element wrapped around an image. The most likely value that is wanted here is:
preserveAspectRatio="xMidYMin meet"
and as Jellby points out, is case sensitive. See http://www.w3.org/TR/SVG/coords.html#PreserveAspectRatioAttribute for more details about this attribute and allowed values.

moonmyst532
02-19-2011, 03:50 PM
thanks so much. I'm off to Sigil. btw. I'm 61 and really appreciate your help.:)

moonmyst532
02-19-2011, 06:32 PM
my ebook "Flow Blue" is now being catalogued for www.Lulu.com. I don't know what I would have done without you.

:thanks:

gail

DMSmillie
02-19-2011, 07:17 PM
Excellent! :)