EPUBCheck OPF-016: rootfile full-path vacío
Actualizado:
EPUBCheck OPF-016 es un mensaje de error: “The element "rootfile" is missing its required attribute "full-path".” Un elemento rootfile en META-INF/container.xml no tiene un atributo full-path. Ese atributo es lo único que le dice a las aplicaciones de lectura dónde se encuentra el documento del paquete, por lo que el libro no se puede abrir sin él.
El mensaje oficial
The element "rootfile" is missing its required attribute "full-path".
- Severidad por defecto
- Error. El EPUB rompe una regla de la especificación y es inválido. Las tiendas y el envío a Kindle pueden rechazarlo, y EPUBCheck sale con estado 1.
- versión de EPUBCheck
- 5.4.0
Causas típicas
- Un container.xml escrito a mano que falta el atributo.
- El nombre del atributo está mal escrito, como fullpath o full_path.
- Un contenedor de plantilla container.xml que nunca se completó.
Cómo arreglarlo
- Abre META-INF/container.xml.
- Añadir el camino completo con la ruta del documento de paquete desde la raíz del archivo, por ejemplo
<rootfile full-path="OEBPS/content.opf" media-type="application/oebps-package+xml"/>. - Verifica que la ruta coincida con el nombre de archivo y el caso reales, luego vuelve a construir el EPUB.
Cuándo no es esto
Si full-path está presente pero vacío, EPUBCheck informa OPF-017; si apunta a un archivo faltante, OPF-002.
Términos usados aquí
Otros mensajes 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.
Fuentes
Texto y severidad del mensaje de EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Explicación por EpubCC.