EPUBCheck OPF-016: rootfile sem full-path
Atualizado:
EPUBCheck OPF-016 é uma mensagem de erro: “The element "rootfile" is missing its required attribute "full-path".” Um elemento rootfile em META-INF/container.xml não tem um atributo full-path. Esse atributo é a única coisa que informa aos aplicativos de leitura onde o documento do pacote está, então o livro não pode ser aberto sem ele.
A mensagem oficial
The element "rootfile" is missing its required attribute "full-path".
- Severidade padrão
- Erro. O EPUB quebra uma regra da especificação e é inválido. Lojas e Enviar para Kindle podem rejeitá-lo, e EPUBCheck sai com status 1.
- versão EPUBCheck
- 5.4.0
Causas típicas
- Um container.xml escrito à mão faltando o atributo.
- O nome do atributo está escrito incorretamente, como fullpath ou full_path.
- Um container.xml de modelo que nunca foi completado.
Como consertar isso
- Abra o META-INF/container.xml.
- Adicione o caminho completo com o caminho do documento do pacote a partir da raiz do arquivo, por exemplo
<rootfile full-path="OEBPS/content.opf" media-type="application/oebps-package+xml"/>. - Verifique se o caminho corresponde ao nome do arquivo real e ao caso, em seguida, reconstrua o EPUB.
Quando não é isso
Se full-path estiver presente, mas vazio, EPUBCheck relata OPF-017; se apontar para um arquivo que está faltando, OPF-002.
Termos usados aqui
Outras mensagens de 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.
Fontes
Texto da mensagem e severidade de EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Explicação por EpubCC.