EPUBCheck OPF-016: rootfile senza full-path
Aggiornato:
EPUBCheck OPF-016 è un messaggio di errore: “The element "rootfile" is missing its required attribute "full-path".” Un elemento rootfile in META-INF/container.xml non ha un attributo full-path. Questo attributo è l'unica cosa che indica alle app di lettura dove si trova il documento del pacchetto, quindi il libro non può essere aperto senza di esso.
Il messaggio ufficiale
The element "rootfile" is missing its required attribute "full-path".
- 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 container.xml scritto a mano privo dell'attributo.
- Il nome dell'attributo è scritto male, come fullpath o full_path.
- Un contenitore template container.xml che non è mai stato completato.
Come correggerlo
- Apri META-INF/container.xml.
- Aggiungi il percorso completo con il percorso del documento del pacchetto dalla radice dell'archivio, ad esempio
<rootfile full-path="OEBPS/content.opf" media-type="application/oebps-package+xml"/>. - Controlla che il percorso corrisponda al nome del file reale e al caso, poi ricostruisci il EPUB.
Quando non è questo
Se full-path è presente ma vuoto, EPUBCheck riporta OPF-017; se punta a un file mancante, OPF-002.
Termini usati qui
Altri messaggi di OPF
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.
Fonti
Testo e gravità del messaggio da EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Spiegazione di EpubCC.