EPUBCheck RSC-002: container.xml ontbreekt
Bijgewerkt:
EPUBCheck RSC-002 is een fatale foutmelding: “Required META-INF/container.xml resource could not be found.” Het archief bevat geen META-INF/container.xml, het bestand dat lees-apps vertelt waar het pakketinformatie-document is. Zonder dit kan EPUB helemaal niet worden geopend, zodat EPUBCheck stopt met een fatale fout.
Het officiële bericht
Required META-INF/container.xml resource could not be found.
- Standaard ernst
- Fatale fout. EPUBCheck kon deze sectie van de EPUB niet verder controleren. Het bestand is ongeldig.
- EPUBCheck versie
- 5.4.0
Typische oorzaken
- De META-INF map is weggelaten toen het boek werd gezippt.
- Het bestand is anders genoemd of geplaatst, zoals meta-inf/Container.xml.
- Het archief is gebouwd vanuit de inhoudsmap in plaats van vanaf de hoofdmappen van het boek.
Hoe het te repareren
- Voeg META-INF/container.xml toe met een rootfile waarvan het volledige pad naar het pakketdocument wijst, bijvoorbeeld
<rootfile full-path="OEBPS/content.opf" media-type="application/oebps-package+xml"/>. - Herbouw het archief met het mimetype-bestand eerst en opgeslagen zonder compressie, bijvoorbeeld vanuit de map die het boek bevat:
zip -X0 book.epub mimetypeen danzip -rX9 book.epub META-INF OEBPS(gebruik je eigen mapnamen). - Valideer opnieuw.
Wanneer het niet dit is
Als container.xml bestaat maar naar een ontbrekend package-document wijst, dat is PKG-020.
Termen die hier worden gebruikt
Andere RSC berichten
RSC-001File "…" could not be found.RSC-003No rootfile tag with media type "application/oebps-package+xml" was found in the container.RSC-004File "…" is encrypted, its content will not be checked.RSC-005Error while parsing file: …RSC-006Remote resource reference is not allowed in this context; resource "…" must be located in the EPUB container.RSC-006bResource "…" is located outside the EPUB Container; please check the resource is retrieved in scripted content.
Bronnen
Berichttekst en ernst van EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Uitleg door EpubCC.