View Single Post
Old 05-04-2018, 09:32 PM   #8
slowsmile
Witchman
slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.
 
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
@C-novice...Whenever you get xmlns declaration errors all over the place in your html code, this usually indicates that there is an xmlns attribute declaration missing from within the <html> tag in the headers at the top of your html files.

In Book View you said your ebook text looks like this:

'. . .he had always done.</span></p> <p class="subsq"><span xmlns=beyond to the woods. </span><span xmlns=

My wild guess is that the above code in Code View will look like something like this due to the missing/incorrect xmlns declaration in the <html> tag at the top of the file:

'. . .he had always done.</span></p> <p class="subsq"><span xmlns="">beyond to the woods. </span><span xmlns=""

Can you please copy and paste the <html> tag line from any epub xhtml file in your next post so we can see it? The <html> tag line occurs directly after the <!DOCTYPE> line in at the top of your html files. As a reference for you, the headers at the top of your epub 3 xhtml files should all start like this:
Spoiler:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xml:lang="en" lang="en">

Source: Extract from Matt Garrish's epub 3 example code on Git Hub

You also have a bunch of errors in your opf and toc.ncx file. It would also really help tremendously if you posted the code from the <manifest> section in the content.opf file and also posted the code from the toc.ncx file from your epub into your next post. Your toc.ncx might be using a nav map that uses <navpoint> tags which is only relevant for epub 2 format. For epub 3 you should be using a nav map that uses an ordered list within <nav> tags only. This is another wild guess on my part since I really don't know that much about epub 3 format.

A proper epub 3 toc.ncx looks something like this:
Spoiler:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<html  xmlns:epub="http://www.idpf.org/2007/ops">
  <head>
    <meta http-equiv="default-style" content="text/html; charset=utf-8"/>
    <title>Contents</title>
    <link rel="stylesheet" href="css/siddhartha.css" type="text/css"/>
  </head>
  <body>
<!-- Start of Nav Structures -->
<!-- Main Contents -->    
<nav epub:type="toc">
  <h2>Contents</h2>
  <ol>
    <li><a href="s001-BookTitlePage-01.xhtml">SIDDHARTHA</a></li>
    <li><a href="s002-Copyright-01.xhtml">Copyright</a></li>
    <li><a href="s003-Dedication-01.xhtml">Dedication</a></li>
    <li><a href="s004-Epigraph-01.xhtml">Epigraph</a></li>
    <li><a href="s005-AboutTheAuthor-01.xhtml">Herman Hesse</a></li>
    <li><a href="s006-AboutThisBook-01.xhtml">Siddhartha—The book</a></li>
    <li><a href="s007-Part-001.xhtml">First Part</a>
      <ol>
        <li><a href="s008-Chapter-001.xhtml">The Son of the Brahman</a></li>
        <li><a href="s009-Chapter-002.xhtml">With the Samanas</a></li>
        <li><a href="s010-Chapter-003.xhtml">Gotama</a></li>
        <li><a href="s011-Chapter-004.xhtml">Awakening</a></li>
      </ol>
    </li>
    <li><a href="s012-Part-002.xhtml">Second Part</a>
      <ol>
        <li><a href="s013-Chapter-005.xhtml">Kamala</a></li>
        <li><a href="s014-Chapter-006.xhtml">With the Childlike People</a></li>
        <li><a href="s015-Chapter-007.xhtml">Sansara</a></li>
        <li><a href="s016-Chapter-008.xhtml">By the River</a></li>
        <li> <a href="s017-Chapter-009.xhtml">The Ferryman</a></li>
        <li><a href="s018-Chapter-010.xhtml">The Son</a></li>
        <li><a href="s019-Chapter-011.xhtml">Om</a></li>
        <li><a href="s020-Chapter-012.xhtml">Govinda</a></li>
      </ol>
    </li>
    <li><a href="s021-Appendix-01.xhtml">Appendix 1: Dharmmapada</a></li>
  </ol>
</nav>
<!-- Landmarks --> 
<nav epub:type="landmarks">
  <h2>Landmarks</h2>
  <ol>
    <li><a epub:type="bodymatter" href="s008-Chapter-001.xhtml">Begin Reading</a></li>
    <li><a epub:type="titlepage" href="s001-BookTitlePage-01.xhtml">Title Page</a></li>
    <li><a epub:type="copyright-page" href="s002-Copyright-01.xhtml">Copyright Page</a></li>
    <li><a epub:type="frontmatter" href="s004-Epigraph-01.xhtml">Epigraph</a></li>
    <li><a epub:type="frontmatter" href="s005-AboutTheAuthor-01.xhtml">Herman Hesse</a></li>
    <li><a epub:type="backmatter" href="s021-Appendix-01.xhtml">Dharmmapada</a></li>
  </ol>
</nav>
<!-- Other TOC elements --> 
<!-- End of Nav Structures -->
  </body>
</html>

Did you use another application to convert your doc to Epub 3 ? If so, what is the name of the app ? Or did you code your epub manually ?

Last edited by slowsmile; 05-04-2018 at 11:26 PM.
slowsmile is offline   Reply With Quote