View Single Post
Old 12-20-2017, 01:16 PM   #1
Akasashasha
Member
Akasashasha began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Dec 2017
Device: all
Question Epub Validator nav.xhtml incomplete ol missing

Hello dears

passing my e-books in the Epub validator for submission on Smashwords, I'm getting the following error message:

Error while parsing file 'element "nav" incomplete; missing required element "ol"'.

Here is the content of my nav.xhtml file (the ebook doesn't have a toc as it is very small, just one page):

Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" lang="fr-FR" xml:lang="fr-FR">
<head>
  <meta charset="utf-8"/>
  <style type="text/css">
    nav#landmarks, nav#page-list { display:none; }
    ol { list-style-type: none; }
  </style>
<title></title></head>
<body epub:type="frontmatter">
  <nav epub:type="toc" id="toc">
  </nav>
  <nav epub:type="landmarks" id="landmarks" hidden="">
  </nav>
</body>
</html>
I deleted the
Code:
nav#landmarks, nav#page-list { display:none; }
    ol { list-style-type: none; }
  </style>
but then get another error message ... any idea how to solve that one ?

thanks
Akasashasha is offline   Reply With Quote