EPUBCheck OPF-016: rootfile ilman full-pathia
Päivitetty:
EPUBCheck OPF-016 on virheteravi: “The element "rootfile" is missing its required attribute "full-path".” META-INF/container.xml-tiedoston rootfile-elementillä ei ole full-path-attribuuttia. Tämä attribuutti on ainoa asia, joka kertoo lukusovelluksille, missä pakettiasiakirja sijaitsee, joten kirjaa ei voi avata ilman sitä.
Virallinen viesti
The element "rootfile" is missing its required attribute "full-path".
- 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
- Käsin kirjoitettu container.xml, jolta puuttuu attribuutti.
- Attribuutin nimeä on kirjoitettu väärin, kuten fullpath tai full_path.
- Mallipohja container.xml, jota ei koskaan viimeistelty.
Kuinka korjata se
- Avaa META-INF/container.xml.
- Lisää kokonaispolku paketin dokumentin polku arkiston juuresta, esimerkiksi
<rootfile full-path="OEBPS/content.opf" media-type="application/oebps-package+xml"/>. - Tarkista, että polku vastaa oikeaa tiedostonimeä ja -kirjainta, rakenna sitten EPUB uudelleen.
Milloin tämä ei ole se
Jos full-path on läsnä mutta tyhjää, EPUBCheck ilmoittaa OPF-017; jos se osoittaa puuttuvaan tiedostoon, OPF-002.
Tässä käytetyt termit
Muut OPF viestit
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.
Lähteet
Viestin teksti ja vakavuus EPUBCheck 5.4.0:stä (W3C, BSD-3-Clause). Selitys EpubCC:ltä.