I gather from the OCF 2 specification that it is perfectly legal to add multiple root files to one EPUB. The specification mentions only different renditions (as in formats) of a publication, for instance OEBPS and PDF. However I decided to see if I can create an EPUB with the same publication in different languages. This using the Eclipse EPUB tools. The resulting container.xml looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<container xmlns="urn:oasis:names:tc:opendocument:xmlns:container" version="1.0">
<rootfiles>
<rootfile full-path="OEBPS/content.opf" media-type="application/oebps-package+xml"/>
<rootfile full-path="OEBPS_1/content.opf" media-type="application/oebps-package+xml"/>
<rootfile full-path="OEBPS_2/content.opf" media-type="application/oebps-package+xml"/>
</rootfiles>
</container>
And the file layout:
.
├── META-INF
│ └── container.xml
├── OEBPS
│ ├── content.opf
│ ├── halfdan_svarte_en.xhtml
│ └── toc.ncx
├── OEBPS_1
│ ├── content.opf
│ ├── halfdan_svarte_no.xhtml
│ └── toc.ncx
├── OEBPS_2
│ ├── content.opf
│ ├── halfdan_svarte_is.xhtml
│ └── toc.ncx
└── mimetype
However when using ebubcheck (the latest build) I get these errors:
Validating against EPUB version 2.0
WARNING: Halfdan.epub: item (OEBPS_1/toc.ncx) exists in the zip file, but is not declared in the OPF file
WARNING: Halfdan.epub: item (OEBPS/toc.ncx) exists in the zip file, but is not declared in the OPF file
WARNING: Halfdan.epub: item (OEBPS_1/halfdan_svarte_no.xhtml) exists in the zip file, but is not declared in the OPF file
WARNING: Halfdan.epub: item (OEBPS/halfdan_svarte_en.xhtml) exists in the zip file, but is not declared in the OPF file
--
You received this message because you are subscribed to the Google Groups "epubcheck" group.
To view this discussion on the web visit https://groups.google.com/d/msg/epubcheck/-/orL6f_R4_GQJ.
To post to this group, send email to epub...@googlegroups.com.
To unsubscribe from this group, send email to epubcheck+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/epubcheck?hl=en.