EPUBCheck OPF-098: enlace a elemento del paquete
Actualizado:
EPUBCheck OPF-098 es un mensaje de error: “The "href" attribute must reference resources, not elements in the package document, but found URL "…".” El href de un enlace de metadatos apunta a un elemento dentro del documento del paquete mismo (una URL con #id). Los elementos de enlace deben referirse a recursos, no a partes del documento del paquete.
El mensaje oficial
The "href" attribute must reference resources, not elements in the package document, but found URL "%1$s".
- 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
%1$s, %2$s… se completan con el archivo, valor o elemento EPUBCheck encontrado.
Causas típicas
- Un enlace escrito como href="#title" o content.opf#meta1 para apuntar a los metadatos en el mismo archivo.
- Un enlace de voz o de grabación dirigido a un elemento meta en lugar de a un archivo.
- Un enlace copiado de la sintaxis refines, que sí usa #id.
Cómo arreglarlo
- Encuentra el elemento de enlace EPUBCheck que apunta.
- Apuntar href al archivo real (un archivo de audio, un registro), no al documento del paquete.
- Para describir un elemento del paquete, usa el atributo refines con #id en lugar de href.
Cuándo no es esto
Si href de un elemento del manifiesto contiene un fragmento, eso es OPF-091.
Términos usados aquí
Otros mensajes de OPF
OPF-097Resource "…" is listed in the manifest, but no reference to it was found in content documents.OPF-099The manifest must not list the package document.OPF-096Non-linear content must be reachable, but found no hyperlink to "…".OPF-096bNo hyperlink was found to non-linear document "…", please check that it can be reached from scripted content.OPF-100The "…" property only applies to pre-paginated content.OPF-095The "media-type" attribute of "voicing" links must be an audio MIME type, but found "…".
Fuentes
Texto y severidad del mensaje de EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Explicación por EpubCC.