Skip to content
Novus Examples
epub3.7 KB

EPUB 3 - Four-Level Nested NCX navPoints

The same four-level hierarchy expressed as nested NCX navPoints with a depth-first playOrder and a matching dtb:depth, alongside the equivalent nav document. For testing the older navigation path, which nests through element containment rather than through lists.

Archive contents — 8 entriesepub
  • mimetype
  • container.xml
  • content.opf
  • nav.xhtml
  • style.css
  • part1.xhtml
  • part2.xhtml
  • toc.ncx

Specifications

Seed
20260807
Epub Version
3.0
Toc Depth
4
Nav Points
14
Dtb Depth
4
Play Order
sequential, depth-first
Navigation Source
nav.xhtml + toc.ncx

Testing contract

Expected to pass
Scenario
Open the contents in a reader that consumes the NCX and compare with the nav document.
Expected result
Both surfaces expose the same four-level hierarchy in the same order, and playOrder increments depth-first from 1 to the total navPoint count.

What is a .epub file?

EPUB is the open e-book standard, a ZIP archive containing XHTML content documents, CSS, images, and a package manifest describing reading order and metadata. It supports reflowable text that adapts to screen size and is supported by most e-readers except Kindle natively. It is the dominant format for distributable e-books.

How to use this file

Use an example EPUB to test e-book parsing, ZIP-package and manifest handling, reading-order and metadata extraction, and rendering in e-reader applications.

How to use this file for testing

“EPUB 3 - Four-Level Nested NCX navPoints” is a deterministic Novus Examples fixture for Conversion testing. The same content exported across many formats and linked as a group, so you can convert one and diff against the expected twin.

Documented properties for this file: seed 20260807. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

E-book fixtures are structured archives documented down to their spine and manifest. Test readers and converters, and where a valid↔intentionally-invalid pair exists, assert graceful handling of the malformed container.

Code examples

ebook-convert nested-ncx-four-levels.epub out.pdf   # Calibre
unzip -l nested-ncx-four-levels.epub                # EPUB is a ZIP

Generated by generation/ebooks_p7.py. Free for any use, no attribution required — license.