Hoppa till innehåll
EPUBCheck · Paketdokument (OPF)

EPUBCheck OPF-017: tomt rootfile full-path

Uppdaterad:

EPUBCheck OPF-017 är ett felmeddelande: “The attribute "full-path" on element "rootfile" must not be empty.” Ett rootfile-element i META-INF/container.xml har en tom full-path-attribut. Attributet måste hålla sökvägen till paketdokumentet; ett tomt värde lämnar läsappar med inget att öppna.

Det officiella meddelandet

The attribute "full-path" on element "rootfile" must not be empty.

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

  • En mall container.xml vars sökväg aldrig fylldes i.
  • Ett byggscript som skriver vägen från en variabel som visade sig vara tom.
  • En sökväg raderad av misstag när filen redigerades.

Hur man åtgärdar det

  1. Öppna META-INF/container.xml.
  2. Skriv paketdokumentets sökväg från roten av arkivet, till exempel full-path="OEBPS/content.opf".
  3. Kontrollera sökvägen bokstav för bokstav mot den verkliga filen, bygg sedan om EPUB.

När det inte är detta

Om attributet helt saknas, så är det OPF-016.

Villkor som används här

Andra OPF meddelanden

  • OPF-016 The element "rootfile" is missing its required attribute "full-path".
  • 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-015 The property "…" should not be declared in the OPF file.
  • OPF-014 The property "…" should be declared in the OPF file.
  • 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-017?

EPUBCheck OPF-017 är ett felmeddelande: “The attribute "full-path" on element "rootfile" must not be empty.” Ett rootfile-element i META-INF/container.xml har en tom full-path-attribut. Attributet måste hålla sökvägen till paketdokumentet; ett tomt värde lämnar läsappar med inget att öppna.

Är OPF-017 ett fel?

OPF-017 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