EPUBCheck OPF-098: link a elemento del pacchetto
Aggiornato:
EPUBCheck OPF-098 è un messaggio di errore: “The "href" attribute must reference resources, not elements in the package document, but found URL "…".” L'href di un link nei metadati punta a un elemento all'interno del documento di pacchetto stesso (un URL con #id). Gli elementi link devono fare riferimento a risorse, non a parti del documento di pacchetto.
Il messaggio ufficiale
The "href" attribute must reference resources, not elements in the package document, but found URL "%1$s".
- Gravità predefinita
- Errore. Il EPUB viola una regola della specifica ed è non valido. I negozi e Invia a Kindle potrebbero rifiutarlo, e EPUBCheck esce con stato 1.
- versione EPUBCheck
- 5.4.0
%1$s, %2$s… sono completati con il file, valore o elemento EPUBCheck trovato.
Cause tipiche
- Un collegamento scritto come href="#title" o content.opf#meta1 per puntare a metadati nello stesso file.
- Un link di voicing o record destinato a un elemento meta invece di un file.
- Un link copiato dalla sintassi refine, che utilizza #id.
Come correggerlo
- Trova l'elemento link a cui punta EPUBCheck.
- Punta l'href al vero file (un file audio, un record), non al documento del pacchetto.
- Per descrivere un elemento del pacchetto, usa l'attributo refines con #id invece di href.
Quando non è questo
Se l'href di un item del manifesto contiene un frammento, ciò è OPF-091.
Termini usati qui
Altri messaggi di 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 "…".
Fonti
Testo e gravità del messaggio da EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Spiegazione di EpubCC.