Linked TOC -- code
After some wavering I decided to have a separate TOC-chapter in my book. Also to have it linked. So I borrowed some code from another e-book.
Can anybody see if I did something wrong? (Sigil does not protest.)
<?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>
<link href="../Styles/style.css" rel="stylesheet" type="text/css" />
<title>My book</title>
</head>
<body xml:lang="SV" xmlns:xml="http://www.w3.org/XML/1998/namespace">
<h1 id="heading_id_2">TOC</h1>
<div>
<p><a href="../Images/cover.jpg">Cover</a></p>
<p><a href="../Text/Title.htm">Title</a></p>
<p><a href="../Text/Chapter1.xhtml">Chapter one</a></p>
<p><a href="../Text/Chapter2.xhtml">Chapter two</a></p>
AND SO ON
</div>
</body>
</html>
The original was a bit different, I just removed what I didnīt understand. It began like this:
<?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>
<title>A Briefer History of Time</title>
<meta name="Adept.resource" value="urn:uuid:381f5f04-b26a-460c-8278-f55cae532600" />
<link href="../Styles/stylesheet.css" rel="stylesheet" type="text/css" />
<style type="text/css">
/*<![CDATA[*/
@page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; }
/*]]>*/
</style>
</head>
<body class="calibre">
<div class="calibre1" id="toc">
<p class="fmh">Table of Contents</p>
<p class="cfmh"><a href="../Text/Hawk_9780307417848_epub_tp_r1.htm">Title Page</a></p>
ETC.
|