Saltar al contenido
EPUBCheck · Documento de paquete (OPF)

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

  1. Encuentra el elemento NCX en el manifiesto; su tipo de medio debe ser application/x-dtbncx+xml.
  2. Establece el atributo toc de spine al id de ese elemento.
  3. 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-049 Item id "…" was not found in the manifest.
  • OPF-048 Package tag is missing its required unique-identifier attribute and value.
  • OPF-053 Date value "…" does not follow recommended syntax as per http://www.w3.org/TR/NOTE-datetime:….
  • OPF-054 Date value "…" is not valid as per http://www.w3.org/TR/NOTE-datetime:….
  • OPF-045 Encountered circular reference in fallback chain.
  • OPF-055 … tag is empty.

Fuentes

Texto y severidad del mensaje de EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Explicación por EpubCC.

FAQ

¿Qué significa EPUBCheck OPF-050?

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.

¿Es OPF-050 un error?

OPF-050 se informa como error por defecto. El EPUB rompe una regla de la especificación y es inválido. Las tiendas y Enviar a Kindle pueden rechazarlo, y EPUBCheck sale con estado 1.

Herramientas de PDF a EPUB

Cada herramienta utiliza el mismo motor. Hasta 3 libros al día son gratuitos.

Ver todas las herramientas