EPUBCheck OPF-050: spine toc no es un NCX
Actualizado:
EPUBCheck OPF-050 es un mensaje de error: “TOC attribute references resource with non-NCX mime type; "application/x-dtbncx+xml" is expected.” El atributo toc de spine apunta a un ítem que no es un archivo NCX. En EPUB 2 (y en EPUB 3 libros que mantienen un NCX para lectores antiguos), toc debe nombrar el ítem NCX.
El mensaje oficial
TOC attribute references resource with non-NCX mime type; "application/x-dtbncx+xml" is expected.
- 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
- toc configurado a la id del documento de navegación en lugar del NCX.
- toc apuntando a un capítulo u otro archivo por error.
- El NCX declarado con el tipo de medio incorrecto, por lo que no parece un NCX.
Cómo arreglarlo
- Encuentra el elemento NCX en el manifiesto; su tipo de medio debe ser application/x-dtbncx+xml.
- Establece el atributo toc de spine al id de ese elemento.
- En un EPUB 3 sin un NCX, elimina el atributo toc.
Cuándo no es esto
Si toc nombra un id que no existe en absoluto, eso es OPF-049.
Términos usados aquí
Otros mensajes de OPF
OPF-049Item id "…" was not found in the manifest.OPF-048Package tag is missing its required unique-identifier attribute and value.OPF-053Date value "…" does not follow recommended syntax as per http://www.w3.org/TR/NOTE-datetime:….OPF-054Date value "…" is not valid as per http://www.w3.org/TR/NOTE-datetime:….OPF-045Encountered circular reference in fallback chain.OPF-055… tag is empty.
Fuentes
- EPUB 3.3, §5.7.1 The spine element · leer
- EPUB 3.3, §5.9.5 NCX · leer
Texto y severidad del mensaje de EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Explicación por EpubCC.