EPUBCheck RSC-003: geen OPF rootfile in container
Bijgewerkt:
EPUBCheck RSC-003 is een foutmelding: “No rootfile tag with media type "application/oebps-package+xml" was found in the container.” META-INF/container.xml bestaat, maar geen van zijn rootfile-elementen heeft het mediatype application/oebps-package+xml, zodat het pakketdocument niet gevonden kan worden. Leesapps vertrouwen op die exacte waarde om het pakketdocument te selecteren.
Het officiële bericht
No rootfile tag with media type "application/oebps-package+xml" was found in the container.
- Standaard ernst
- Fout. De EPUB overtreedt een regel van de specificatie en is ongeldig. Opslaan en Verzenden naar Kindle kunnen het afwijzen, en EPUBCheck verlaat met status 1.
- EPUBCheck versie
- 5.4.0
Typische oorzaken
- Een verkeerd gespeld of ontbrekend media-type attribuut op het rootfile-element.
- Een container.xml met de hand geschreven of gekopieerd van een sjabloon met een ander mediatype, zoals application/xml of text/xml.
Hoe het te repareren
- Open META-INF/container.xml.
- Stel media-type="application/oebps-package+xml" in op het rootfile-element dat naar het package-document wijst.
- Controleer of het volledige pad ook correct is, bouw opnieuw en valideer opnieuw.
Wanneer het niet dit is
Als het rootbestand correct is, maar het bestand dat het benoemt niet bestaat, is de fout PKG-020.
Termen die hier worden gebruikt
Andere RSC berichten
RSC-002Required META-INF/container.xml resource could not be found.RSC-004File "…" is encrypted, its content will not be checked.RSC-001File "…" could not be found.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.