Open eBook package file markup reference

eBook publication in accordance to the Open eBook Standard requires a package file (.opf file) to be converted into system- dependent format. requires a package file for each eBook.

Package files are XML-style files that like all others XML files are largely lower-case throughout (the exceptions are the various "dc:Metadata" tags).

Sample (given in Microsoft Reader SDK):

package unique-identifier="isbn">
 <metadata>
  <dc-metadata
   xmlns:dc="http://purl.org/metadata/dublin_core"
   xmlns:oebpackage="http://openebook.org/namespaces/oeb-package/1.0/">
    <dc:Title>Great Expectations</dc:Title>
    <dc:Contributor role="aui">Stanley Weintraub</dc:Contributor>
    <dc:Contributor role="art">Robert Braithwaite Martineau</dc:Contributor>
    <dc:Creator file-as="Dickens, Charles" role="aut">Charles Dickens</dc:Creator>
    <dc:Coverage>19th Century England</dc:Coverage>
    <dc:Date>July, 2000</dc:Date>
    <dc:Identifier id="isbn">0-451-52671-6</dc:Identifier>
    <dc:Language>en</dc:Language>
    <dc:Publisher>Penguin Putnam Inc.</dc:Publisher>
  </dc-metadata>
  <x-metadata>
   <meta name="ms-chaptertour" content="chaptertour"/>
  </x-metadata>
 </metadata>
 <manifest>
  <item id="content" href="Dickens_Expect.htm" media-type="text/x-oeb1-document" />
  <item id="about" href="Dickens_About.htm" media-type="text/x-oeb1-document" />
  <item id="coverstandard" href="GEcover.jpg" media-type="image/jpeg" />
  <item id="thumbstandard" href="GEthumbnail.jpg" media-type="image/jpeg" />
  <item id="titlestandard" href="GEtitle.jpg" media-type="image/jpeg" />
  <item id="cover" href="Dickens480.jpg" media-type="image/jpeg" />
  <item id="thumb" href="Dickens090.jpg" media-type="image/jpeg" />
  <item id="plate 1" href="kit.jpg" media-type="image/jpeg"/>
  <item id="plate 2" href="havisham.jpg" media-type="image/jpeg"/>
  <item id="plate 3" href="jaggers.jpg" media-type="image/jpeg"/>
 </manifest>
 <spine>
  <itemref idref="content" />
 </spine>
 <guide>
  <reference type="toc" title="Table of Contents" href="Dickens_Expect.htm#TOC" />
   <reference type="other.ms-coverimage-standard" title="cover image standard" href="GEcover.jpg" />
   <reference type="other.ms-thumbimage-standard" title="thumb image standard" href="GEthumbnail.jpg" />
   <reference type="other.ms-titleimage-standard" title="title image standard" href="Getitle.jpg" />
   <reference type="other.ms-coverimage" title="PPC cover image" href="Dickens480.jpg" />
   <reference type="other.ms-thumbimage" title="PPC thumbnail image" href="Dickens090.jpg" />
   <reference type="other.ms-firstpage" title="" href="Dickens_Expect.htm#p1"/>
   <reference type="title-page" title="" href="Dickens_About.htm"/>
 </guide>
 <tours>
  <tour id="chaptertour" title="chapter tour">
   <site title="ch1" href="Dickens_Expect.htm#Ch1"/>
   <site title="ch2" href="Dickens_Expect.htm#Ch2"/>
   <site title="ch3" href="Dickens_Expect.htm#Ch3"/>
   <site title="ch4" href="Dickens_Expect.htm#Ch4"/>
   <site title="ch5" href="Dickens_Expect.htm#Ch5"/>
   <site title="ch6" href="Dickens_Expect.htm#Ch6"/>
   <site title="ch7" href="Dickens_Expect.htm#Ch7"/>
   <site title="ch8" href="Dickens_Expect.htm#Ch8"/>
   <site title="ch9" href="Dickens_Expect.htm#Ch9"/>
   <site title="ch10" href="Dickens_Expect.htm#Ch10"/>
   <site title="ch11" href="Dickens_Expect.htm#Ch11"/>
   <site title="ch12" href="Dickens_Expect.htm#Ch12"/>
   <site title="epilogue" href="Dickens_Expect.htm #Epilogue"/>
  </tour>
 </tours>
</package>

See also:

Open eBook overview

Open eBook package document