Pule para o conteúdo
EPUBCheck · Documento do pacote (OPF)

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

  1. Abra o META-INF/container.xml.
  2. 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"/>.
  3. 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-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.

Fontes

Texto da mensagem e severidade de EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Explicação por EpubCC.

FAQ

O que significa EPUBCheck OPF-016?

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.

É OPF-016 um erro?

OPF-016 é relatado como erro por padrão. O EPUB quebra uma regra da especificação e é inválido. Armazenamentos e Enviar para Kindle podem rejeitá-lo, e EPUBCheck sai com status 1.

PDF para EPUB ferramentas

Todas as ferramentas usam o mesmo motor. Até 3 livros por dia são gratuitos.

Ver todas as ferramentas