View Single Post
Old 05-26-2023, 08:49 AM   #1
annako
Junior Member
annako began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2023
Device: none
Nested Lists Not Working for ePubs

Hello! I hope everyone is having a great day.

I'm having an issue trying to create nested lists in epubs. This is not for a nav or toc.xhtml document, but rather, appears in the running text of the book. For example, I want a nested list in the <body> tag of chapter01.xhtml:

Code:
<ul>
<li>First item</li>
   <ul>
      <li>First item Quality A</li>
      <li>First item Quality B</li>
   </ul>
<li>Second item</li>
   <ul>
      <li>Second item Quality A</li>
      <li>Second item Quality B</li>
   </ul>
</ul>
This is the correct way to nest lists to my knowledge. However, running the epub through pagina epub checker brings up the error:

"Error while parsing file: element "ul" not allowed here: expected the element end-tag or element "li", "script", or "template"

switching to <ol> tags doesn't work, and in any case, not what I want (I don't want a numbered list, but bulleted).

It seems only <li> are allowed within <ul> or <ol> tags. I tried searching on google for nesting lists for epubs, but it doesn't seem to be a common problem? What am I doing wrong?

Thank you in advance!
annako is offline   Reply With Quote