EPUBCheck OPF-017: full-path del rootfile vuoto
Aggiornato:
EPUBCheck OPF-017 è un messaggio di errore: “The attribute "full-path" on element "rootfile" must not be empty.” Un elemento rootfile in META-INF/container.xml ha un attributo full-path vuoto. L'attributo deve contenere il percorso al documento del pacchetto; un valore vuoto lascia le app di lettura senza nulla da aprire.
Il messaggio ufficiale
The attribute "full-path" on element "rootfile" must not be empty.
- Gravità predefinita
- Errore. Il EPUB viola una regola della specifica ed è non valido. I negozi e Invia a Kindle potrebbero rifiutarlo, e EPUBCheck esce con stato 1.
- versione EPUBCheck
- 5.4.0
Cause tipiche
- Un contenitore template container.xml il cui percorso non è mai stato compilato.
- Uno script di build che scrive il percorso da una variabile che si è rivelata vuota.
- Un percorso eliminato per errore durante la modifica del file.
Come correggerlo
- Apri META-INF/container.xml.
- Scrivi il percorso del documento del pacchetto dalla radice dell'archivio, per esempio full-path="OEBPS/content.opf".
- Controlla il percorso lettera per lettera rispetto al file reale, poi ricostruisci il EPUB.
Quando non è questo
Se l'attributo è completamente assente, cioè OPF-016.
Termini usati qui
Altri messaggi di OPF
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.
Fonti
Testo e gravità del messaggio da EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Spiegazione di EpubCC.