View Full Version : ePub validation error Filename contains spaces - help


bmacklin
09-19-2012, 08:23 PM
Hello,
I validated my ePub via Sigil. It said no problems.
I submitted my book to Book baby and it came back with a bunch of the following errors

BK00009767/original/BK00009767.epub/OEBPS/Text/MUTATIONS EBOOK Format16Sept UPDATED_split_000.htm: Filename contains spaces.

Can anyone help me solve this.

The code for split 000.htm is below.
thank you


<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="Microsoft Word 14 (filtered)" name="Generator" />

<title>Unknown</title>
<link href="../Styles/stylesheet.css" rel="stylesheet" type="text/css" />
<link href="../Styles/page_styles.css" rel="stylesheet" type="text/css" />
<style type="text/css">
/*<![CDATA[*/

:link { color: blue }
:visited { color: purple }
p.sgc-1 {font-weight: bold}
/*]]>*/
</style>
</head>

<body class="calibre">
<div class="WordSection">
<p class="MsoNormal"><span class="calibre1"><img alt="" class="calibre2" id="Picture_1" src="../Images/image001.jpg" /></span></p>

<p class="MsoNormal"><span class="calibre1" xml:lang="EN-US">&nbsp;</span></p>

<p class="MsoNormal"><span class="calibre1" xml:lang="EN-US">&nbsp;</span></p>

<p class="MsoNormal"><span class="calibre3" xml:lang="EN-US">Presented by</span></p>

<p class="MsoNormal"><span class="calibre3" xml:lang="EN-US">Susanne Russo</span></p>

<p class="MsoNormal"><span class="calibre3" xml:lang="EN-US">&nbsp;</span></p>

<p class="MsoNormal calibre4 sgc-1"><span class="calibre3" xml:lang="EN-US">Copyright 2001-2012 Susanne Russo, all rights reserved.</span></p>

<p class="MsoNormal"><span class="calibre1" xml:lang="EN-US">No portion of this book may be reproduced or distributed without the permission of Susanne Russo. Feel free to email me:</span> <span class="calibre1" xml:lang="EN-US"><a class="calibre1" href="mailto:cockatiel.mutations%20@gmail.com"><span class="calibre1">cockatiel.mutations @gmail.com</span></a></span></p>
</div>
</body>
</html>

Jellby
09-20-2012, 04:27 AM
As the message says, the problem is not in the code, but in the filenames. Filenames with spaces are a source of headaches and Book baby is plainly rejecting them, it seems.

JSWolf
09-20-2012, 05:05 PM
Dump the eBook as text and use Sigil to fix it up. The code you have from Word is atrocious. I know you'll lose styles and formatting starting with a text file, but it may be a lot easier to fix all that then it is to fix the code. Especially for someone who is learning.

Don't ever use Word in the production of an eBook. It's not worth the hassle.