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
- Avaa META-INF/container.xml.
- Kirjoita pakettidokumentin polku arkiston juuresta, esimerkiksi full-path="OEBPS/content.opf".
- 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-016The element "rootfile" is missing its required attribute "full-path".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-015The property "…" should not be declared in the OPF file.OPF-014The property "…" should be declared in the OPF file.OPF-013Resource "…" 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ä.