Holy **** this code needs clean up :P
I couldn't reproduce your error, when I put your code in a validated ePub I get the following error:
Quote:
ERROR: 1.epub/Text/1.html: Obsolete or irregular DOCTYPE statement. External DTD entities are not allowed. Use '<!DOCTYPE html>' instead.
|
When I fix that to <!DOCTYPE html>I get:
Quote:
ERROR: 1.epub/Text/1.html(13,44): The entity "nbsp" was referenced, but not declared.
ERROR: 1.epub/Text/1.html: The entity "nbsp" was referenced, but not declared.
|
I guess something else is wrong with your ePub and it's causing the validator to malfunction. This is why I love Calibre, it fixes all your files with a click of a button and can arrange them into folders, its functions saves you this kind of problems.