Salta al contenuto
EPUBCheck · Documento del pacchetto (OPF)

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

  1. Apri META-INF/container.xml.
  2. 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"/>.
  3. 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-015 The property "…" should not be declared in the OPF file.
  • OPF-017 The attribute "full-path" on element "rootfile" must not be empty.
  • OPF-014 The property "…" should be declared in the OPF file.
  • 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-013 Resource "…" 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.

FAQ

Cosa significa EPUBCheck OPF-016?

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.

È un errore OPF-016?

OPF-016 è segnalato come errore per impostazione predefinita. Il EPUB rompe una regola della specifica ed è non valido. I negozi e l'invio a Kindle potrebbero rifiutarlo, e EPUBCheck esce con stato 1.

PDF a EPUB strumenti

Ogni strumento utilizza lo stesso motore. Fino a 3 libri al giorno sono gratuiti.

Vedi tutti gli strumenti