View Full Version : help with Apple error - null - expecting http://www.w3.org/1999/xhtml"


mczajka
08-07-2012, 09:56 AM
I've got an epub validating with the latest version of epubcheck, yet apple is rejecting with the following error:


[9780160897443]: ERROR ITMS-9000: "Wrong namespace in 9780160897443.epub:\OEBPS\Text\index_split_003.xht ml : null - expecting http://www.w3.org/1999/xhtml" at Book (MZItmspBookPackage)

I've attached the xhtml file. Can you see anything wrong with it?

Doitsu
08-07-2012, 10:22 AM
The file header looks OK to me. This might be a long shot, but I noticed that you used WINDOWS style CR+LF line breaks in the .html file, however, ePubs usually contain only Unix style LF line breaks. The line break character(s) shouldn't affect validation, but maybe the Apple validator is extra picky. Try resaving the file(s) with LF line-breaks to find out if it makes a difference.

JSWolf
08-07-2012, 05:34 PM
The file header looks OK to me. This might be a long shot, but I noticed that you used WINDOWS style CR+LF line breaks in the .html file, however, ePubs usually contain only Unix style LF line breaks. The line break character(s) shouldn't affect validation, but maybe the Apple validator is extra picky. Try resaving the file(s) with LF line-breaks to find out if it makes a difference.

Line ending being Windows or Unix make no difference at all.

mczajka
08-15-2012, 08:10 AM
And Apple can't be more specific. It's like looking for a needle in a haystack. If they would give me a line #, I might be able to figure it out.