Tools, FAQ, Tutorials:
Hello-2.0.epub - Navigation File: navigation.xml
How to create a navigation file like navigation.xml for an EPUB 2.0.1 book?
✍: FYIcenter.com
At least one navigation file, like navigation.xml, is required for
an EPUB 2.0.1 book in the book ZIP container.
It provides navigation information like a table of contents of the book.
Here is the requirement on a navigation file:
1. A navigation file should be named with .xml file extension.
2. A navigation file must be an XML file and meet the "Navigation Center eXtended (NCX)" specifications.
3. A navigation file must specify a "dtd:uid" meta element in the "head" element. Its content attribute must have the value of the unique-identifier specified in the package file, for example: content="fyicenter.com.epub.hello".
4. A navigation file must provide a title with the "docTitle" element.
5. A navigation file must provide the "navMap" element with a list of "navPoint" sub-elements.
You can create a navigation file with any text editor. Here is an example called navigation.xml:
<?xml version="1.0" encoding="utf-8"?>
<!-- navigation.xml
Copyright (c) 2018 FYIcenter.com
-->
<ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1">
<head>
<meta content="fyicenter.com.epub.hello" name="dtb:uid"/>
</head>
<docTitle>
<text>Hello</text>
</docTitle>
<navMap>
<navPoint id="link1">
<navLabel>
<text>Hello</text>
</navLabel>
<content src="/content.xhtml"/>
</navPoint>
</navMap>
</ncx>
Download Hello-2.0.epub, and unzip it. You see an example of "navigation.xml" in the root directory.
⇒ Hello-2.0.epub - Content File: content.xhtml
⇐ Hello-2.0.epub - Package File: package.opf
2021-04-15, ∼2281🔥, 0💬
Popular Posts:
How To Avoid the Undefined Index Error in PHP? If you don't want your PHP page to give out errors as...
How to add a new operation to an API on the Publisher Dashboard of an Azure API Management Service? ...
How to install "The Windows SDK version 8.1"? I need to build my Visual Studio C++ applications. If ...
How to Build my "sleep" Docker image from the Alpine image? I want the container to sleep for 10 hou...
How to Install Docker Desktop 2.5.0 on Windows 10? You can follow this tutorial to Install Docker De...