Skip to content

Instantly share code, notes, and snippets.

@stonezhl
Last active July 30, 2019 04:22
Show Gist options
  • Save stonezhl/3b3026da213116ba25b2269d5e20cbf4 to your computer and use it in GitHub Desktop.
Save stonezhl/3b3026da213116ba25b2269d5e20cbf4 to your computer and use it in GitHub Desktop.
A sample of the manifest element in an OPF file.
<?xml version="1.0" encoding="UTF-8"?>
<package xmlns="http://www.idpf.org/2007/opf" dir="ltr" prefix="se: http://standardebooks.org/vocab/1.0" unique-identifier="uid" version="3.0" xml:lang="en-US">
<manifest>
<item href="toc.ncx" id="ncx" media-type="application/x-dtbncx+xml"/>
<item href="text/uncopyright.xhtml" id="uncopyright.xhtml" media-type="application/xhtml+xml"/>
<item href="toc.xhtml" id="toc.xhtml" media-type="application/xhtml+xml" properties="nav"/>
<item href="text/chapter-2.xhtml" id="chapter-2.xhtml" media-type="application/xhtml+xml"/>
<item href="images/cover.jpg" id="cover.jpg" media-type="image/jpeg" properties="cover-image"/>
<item href="text/chapter-3.xhtml" id="chapter-3.xhtml" media-type="application/xhtml+xml"/>
<item href="images/titlepage.png" id="titlepage.png" media-type="image/png"/>
<item href="text/chapter-1.xhtml" id="chapter-1.xhtml" media-type="application/xhtml+xml"/>
<!--Other items-->
</manifest>
<!--Other elements-->
</package>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment