EPUBCheck RSC-003: kein OPF-rootfile im Container
Aktualisiert:
EPUBCheck RSC-003 ist eine Fehlermeldung: „No rootfile tag with media type "application/oebps-package+xml" was found in the container.“ META-INF/container.xml existiert, aber keines seiner rootfile-Elemente hat den Medientyp application/oebps-package+xml, sodass das Paketdokument nicht gefunden werden kann. Leseanwendungen verlassen sich auf diesen genauen Wert, um das Paketdokument auszuwählen.
Die offizielle Nachricht
No rootfile tag with media type "application/oebps-package+xml" was found in the container.
- Standard-Schweregrad
- Fehler. Das EPUB bricht eine Regel der Spezifikation und ist ungültig. Geschäfte und Sende an Kindle könnten es ablehnen, und EPUBCheck beendet die Ausführung mit Status 1.
- EPUBCheck Version
- 5.4.0
Typische Ursachen
- Ein falsch geschriebenes oder fehlendes Medientyp-Attribut im rootfile-Element.
- Eine container.xml, die von Hand geschrieben oder aus einer Vorlage mit einem anderen Medientyp kopiert wurde, wie z. B. application/xml oder text/xml.
Wie man es behebt
- Öffnen Sie META-INF/container.xml.
- Setzen Sie media-type="application/oebps-package+xml" im rootfile-Element, das auf das Paketdokument verweist.
- Überprüfen Sie, ob der vollständige Pfad ebenfalls korrekt ist, erneut aufbauen und erneut validieren.
Wann es nicht das ist
Wenn die rootfile stimmt, aber die benannte Datei nicht existiert, ist der Fehler PKG-020.
Hier verwendete Begriffe
Andere RSC Nachrichten
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.
Quellen
Nachrichtentext und Schweregrad von EPUBCheck 5.4.0 (W3C, BSD-3-Klausel). Erklärung durch EpubCC.