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

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

  1. Abra o META-INF/container.xml.
  2. Escreva o caminho do documento do pacote a partir da raiz do arquivo, por exemplo full-path="OEBPS/content.opf".
  3. 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-016 The element "rootfile" is missing its required attribute "full-path".
  • 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-015 The property "…" should not be declared in the OPF file.
  • OPF-014 The property "…" should be declared in the OPF file.
  • 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-017?

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.

É OPF-017 um erro?

OPF-017 é 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