EPUBCheck OPF-016: rootfile utan full-path
Uppdaterad:
EPUBCheck OPF-016 är ett felmeddelande: “The element "rootfile" is missing its required attribute "full-path".” Ett rootfile-element i META-INF/container.xml har inga full-path-attribut. Det attributet är det enda som berättar för läsappar var paketdokumentet finns, så boken kan inte öppnas utan det.
Det officiella meddelandet
The element "rootfile" is missing its required attribute "full-path".
- Standardsvårighetsgrad
- Fel. EPUB bryter mot en regel i specifikationen och är ogiltig. Butiker och Skicka till Kindle kan avvisa den, och EPUBCheck avslutas med status 1.
- EPUBCheck version
- 5.4.0
Typiska orsaker
- Ett handskrivet container.xml som saknar attributet.
- Attributnamnet är felstavat, som fullpath eller full_path.
- En mall container.xml som aldrig blev färdig.
Hur man åtgärdar det
- Öppna META-INF/container.xml.
- Lägg till fullväg med paketdokumentets väg från roten av arkivet, till exempel
<rootfile full-path="OEBPS/content.opf" media-type="application/oebps-package+xml"/>. - Kontrollera att sökvägen matchar det verkliga filnamnet och stor bokstav, bygg sedan om EPUB.
När det inte är detta
Om full-path är angiven men tom, rapporterar EPUBCheck OPF-017; om den pekar på en saknad fil, OPF-002.
Villkor som används här
Andra OPF meddelanden
OPF-015The property "…" should not be declared in the OPF file.OPF-017The attribute "full-path" on element "rootfile" must not be empty.OPF-014The property "…" should be declared in the OPF file.OPF-018The "remote-resources" property was declared in the Package Document, but no reference to remote resources has been found.OPF-018bThe "remote-resources" property was declared in the Package Document, but no reference to remote resources has been found; please check scripted content to make sure the property is legit.OPF-013Resource "…" is declared with MIME type "…" in content, but has MIME type "…" in the package document.
Källor
Meddelandetext och allvarlighetsgrad från EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Förklaring av EpubCC.