View Single Post
Old 01-24-2013, 11:38 PM   #2
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Well, you have a parse error in the first line. It should end with ?>, not ??>.

Beyond that, the error you're seeing can be caused by the name of the OPF file not matching what is in the META-INF/container.xml file. Paths in the container.xml file are relative to the root, not relative to the file, so if your structure is


Code:
bookdir/content.opf
bookdir/META-INF/container.xml
then your container.xml file should say:

Code:
<?xml version="1.0"?>
<container version="1.0" xmlns="urn:oasis:names:tc:opendocument:xmlns:container">
   <rootfiles>
      <rootfile full-path="content.opf" media-type="application/oebps-package+xml"/>
   </rootfiles>
</container>
With things set up that way, your OPF file appears to pass validation on my machine (to the extent that an OPF file can pass validation without the actual content files, that is).

Last edited by dgatwood; 01-24-2013 at 11:48 PM.
dgatwood is offline   Reply With Quote