XML technologies / ePUB / Open Publication Format / Overview of OPF
(Excerpt from “E-Books mit ePUB ─ Von Word zum E-Book mit XML” by Dr. Victor Wang)
The Open Publication Format comprises two XML files: the Open Publication Format file (*.opf) and the NCX file, short for “Navigation Control file for XML applications”, extension *.ncx. Borrowed from the DAISY standard, NCX is a central OPF 2.0 extension, explained in the section on navigation in Open Publication Format.
The basic OPF structure has the root <package> containing these main elements:
Element name | Occurrence | Meaning |
|---|---|---|
<metadata> | mandatory | Publication metadata, mainly borrowed from the Dublin Core standard. |
<manifest> | mandatory | All included files: content documents, graphics, stylesheets and other resources. |
<spine> | mandatory | The backbone sets document sequence and therefore reading order. |
<tours> (deprecated) | optional | Kept only for backward compatibility, this should no longer be used. It provided alternative reading routes beyond the linear spine concept, such as a trial route through a specialist book. |
<guide> | optional | Entry points to major referenceable sections, such as contents, bibliography, index or glossary. |
Table: Main OPF elements
The root <package> must have the required attributes version="2.0" and unique-identifier. The attribute unique-identifier uniquely identifies the publication. Publishing identifiers include the International Standard Book Number (ISBN) for books and International Standard Serial Number (ISSN) for journals and periodicals. Online titles may use a Digital Object Identifier (DOI). For example, DOI 10.1007/978-3-540-87777-6 references the 24th edition of Albert Einstein’s Über die spezielle und die allgemeine Relativitätstheorie. Its ISBN is 978-3-540-8777-9.
Put these identifiers in metadata, specifically the element <dc:identifier>. The unique-identifier must match the id attribute of at least one such element.
Copyright © mitp 2011
You may print the online version for your private use.
Otherwise, this chapter from “E-Books mit ePUB” is subject to the same terms as the printed edition: the work and all its parts are protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
Verlagsgruppe Hüthig Jehle Rehm GmbH, Im Weiher 10, 69121 Heidelberg, kundenbetreuung(at)hjr-verlag.de
back to top