bell notificationshomepageloginedit profileclubsdmBox

10.01% popularity   0 Reactions

I'm trying to fix a table of contents with the following code and am am getting this error:

"Error at line 20 at column 8: Opening and ending tag mismatch li line 0 and html"

This is confusing because the closing tag for li is , not html. And all the tags are closed. Also, in an ebook, you don't simply have html file where there is a line 20.

Here's the code:

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:epub="http://www.idpf.org/2007/ops"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<head>
<title>Contents</title>
<meta content="text/html; charset=utf-8" http-equiv="Content- Type"/>
<link href="../Styles/stylesheet.css" rel="stylesheet" type="text/css"/>
<link href="../Styles/page_styles.css" rel="stylesheet" type="text/css"/>
</head>
<body class="calibre">
<h1 class="calibre1">Contents</h1>
<ul class="calibre2" id="toc-style"><li class="calibre3">
<body>
<ol>
<li><a class="calibre4" href="../Text/Flow_0_split_000.xhtml">Foreword/The Art of Correction</a></li>
<li><a class="calibre4" href="../Text/Flow_0_split_001.xhtml">The Revelation of Anakum</a></li>
<li><a class="calibre4" href="../Text/Flow_0_split_002.xhtml">Justice is Blind</a></li>
</ol>

</body>
</html>


Free books android app tbrJar TBR JAR Read Free books online gutenberg


Load Full (1)

Login to follow story

More posts by @Sherry

1 Comments

Sorted by latest first Latest Oldest Best

 

@Julie

10% popularity   0 Reactions

The problem is that you have an open UL tag with no close tag. (and an extra body tag in strange place). Did you paste the code correctly into the Stack Exchange form?

You might want to consider pasting the contents into the calibre editor or sigil editor and beginning from scratch. Or pasting it into word, removing all formatting except headings and using calibre to convert from MS Word to epub. Typically calibre generates the tocs from MS word pretty well.


Free books android app tbrJar TBR JAR Read Free books online gutenberg


Load Full (0)

 

Back to top