I have an ePub file that I added to Calibre and then converted it to ePub in order to automatically have the date put in the file. Calibre splits chapter 13 into two files: Section2chps-3_split_000.xhtml (which is actually just the title) and Section2chps-3_split_001.xhtml (which is the remainder of the chapter). I’m not sure why it does this. When I open the file up in Adobe Digital Editions before I convert it, the file looks fine and the chapter No. and Chapter title appear on the same page, which is what I want. When I put the converted file through ePub check the following error occurs:
ERROR: /Calbre Library of books/Wade B. Cook/Home Based Income (118)/Home Based Income - Wade B. Cook.epub/OEBPS/Section2chps-3_split_000.xhtml(9): element “a” from namespace “
http://www.w3.org/1999/xhtml” not allowed in this context
The following is the the actual file and line (9) is the one that starts with: <a id=”anchor-14-anchor”. How do I fix this problem and how can I prevent this from spliting?
<?xml version=’1.0’ encoding=’utf-8’?>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<title>Section2chps-3.xhtml</title>
<meta content=”
http://www.w3.org/1999/xhtml; charset=utf-8” http-equiv=”Content-Type”/><link href=”../stylesheet.css” type=”text/css” rel=”stylesheet”/><style type=”text/css”>
@page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; }</style></head>
<body class=”calibre”>
<div style=”height:0pt” id=”anchor-13-anchor”></div><div style=”height:0pt” id=”section2chps”></div><h1 class=”chp-head” xml:lang=”en-us” id=”toc-anchor”>Chapter 13</h1>
<a id=”anchor-14-anchor” class=”calibre3”></a><div class=”calibre4” id=”calibre_pb_1”></div></body>
</html>