Hoppa till innehåll
EPUBCheck · Paketdokument (OPF)

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

  1. Öppna META-INF/container.xml.
  2. 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"/>.
  3. 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-015 The property "…" should not be declared in the OPF file.
  • OPF-017 The attribute "full-path" on element "rootfile" must not be empty.
  • OPF-014 The property "…" should be declared in the OPF file.
  • OPF-018 The "remote-resources" property was declared in the Package Document, but no reference to remote resources has been found.
  • OPF-018b The "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-013 Resource "…" 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.

FAQ

Vad betyder EPUBCheck OPF-016?

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.

Är OPF-016 ett fel?

OPF-016 rapporteras som fel som standard. EPUB bryter mot en regel i specifikationen och är ogiltigt. Butiker och Skicka till Kindle kan avvisa det, och EPUBCheck avslutas med status 1.

PDF till EPUB verktyg

Varje verktyg använder samma motor. Upp till 3 böcker per dag är gratis.

Se alla verktyg