Siirry sisältöön
EPUBCheck · Pakettiasiakirja (OPF)

EPUBCheck OPF-017: tyhjät rootfile full-path

Päivitetty:

EPUBCheck OPF-017 on virheteravi: “The attribute "full-path" on element "rootfile" must not be empty.” META-INF/container.xml-tiedoston rootfile-elementillä on tyhjät full-path-attribuutti. Attribuutin on pidettävä tiedosto polku pakettiasiakirjaan; tyhjät arvot jättävät lukusovellukset ilman mitään avattavaa.

Virallinen viesti

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

Oletusarvoinen vakavuus
Virhe. EPUB rikkoo spesifikaation sääntöä ja on virheellinen. Kaupat ja Lähetä Kindle voivat hylätä sen, ja EPUBCheck poistuu tilassa 1.
EPUBCheck versio
5.4.0

Tyypilliset syyt

  • Mallipohja container.xml, jonka polkua ei koskaan täytetty.
  • Rakennusskripti, joka kirjoittaa polun muuttujasta, joka osoittautui tyhjäksi.
  • Polku, joka poistettiin vahingossa tiedostoa muokatessa.

Kuinka korjata se

  1. Avaa META-INF/container.xml.
  2. Kirjoita pakettidokumentin polku arkiston juuresta, esimerkiksi full-path="OEBPS/content.opf".
  3. Tarkista polku kirjainkirjaimelta suhteessa oikeaan tiedostoon, rakenna sitten EPUB uudelleen.

Milloin tämä ei ole se

Jos attribuutti puuttuu kokonaan, se on OPF-016.

Tässä käytetyt termit

Muut OPF viestit

  • 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.

Lähteet

Viestin teksti ja vakavuus EPUBCheck 5.4.0:stä (W3C, BSD-3-Clause). Selitys EpubCC:ltä.

FAQ

Mitä EPUBCheck OPF-017 tarkoittaa?

EPUBCheck OPF-017 on virheteravi: “The attribute "full-path" on element "rootfile" must not be empty.” META-INF/container.xml-tiedoston rootfile-elementillä on tyhjät full-path-attribuutti. Attribuutin on pidettävä tiedosto polku pakettiasiakirjaan; tyhjät arvot jättävät lukusovellukset ilman mitään avattavaa.

Onko OPF-017 virhe?

OPF-017 raportoidaan virheenä oletuksena. EPUB rikkoo spesifikaation sääntöä ja on virheellinen. Kaupat ja Lähetä Kindle voivat hylätä sen, ja EPUBCheck päättyy tilaan 1.

PDF - EPUB työkalua

Jokainen työkalu käyttää samaa moottoria. Enintään 3 kirjaa päivässä on ilmaisia.

Näe kaikki työkalut