EPUBCheck OPF-017: full-path do rootfile vazio
Atualizado:
EPUBCheck OPF-017 é uma mensagem de erro: “The attribute "full-path" on element "rootfile" must not be empty.” Um elemento rootfile em META-INF/container.xml tem um atributo full-path vazio. O atributo deve conter o caminho para o documento do pacote; um valor vazio deixa os aplicativos de leitura sem nada para abrir.
A mensagem oficial
The attribute "full-path" on element "rootfile" must not be empty.
- 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 de modelo cujo caminho nunca foi preenchido.
- Um script de construção que escreve o caminho de uma variável que resultou vazia.
- Um caminho deletado por engano enquanto editava o arquivo.
Como consertar isso
- Abra o META-INF/container.xml.
- Escreva o caminho do documento do pacote a partir da raiz do arquivo, por exemplo full-path="OEBPS/content.opf".
- Verifique o caminho letra por letra em relação ao arquivo real, em seguida, reconstrua o EPUB.
Quando não é isso
Se o atributo estiver completamente ausente, isso é OPF-016.
Termos usados aqui
Outras mensagens de 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.
Fontes
Texto da mensagem e severidade de EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Explicação por EpubCC.