Salta al contenuto
EPUBCheck · Documento del pacchetto (OPF)

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

  1. Trova l'elemento link a cui punta EPUBCheck.
  2. Punta l'href al vero file (un file audio, un record), non al documento del pacchetto.
  3. 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-097 Resource "…" is listed in the manifest, but no reference to it was found in content documents.
  • OPF-099 The manifest must not list the package document.
  • OPF-096 Non-linear content must be reachable, but found no hyperlink to "…".
  • OPF-096b No hyperlink was found to non-linear document "…", please check that it can be reached from scripted content.
  • OPF-100 The "…" property only applies to pre-paginated content.
  • OPF-095 The "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.

FAQ

Cosa significa EPUBCheck OPF-098?

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.

È OPF-098 un errore?

OPF-098 viene segnalato come errore per default. Il EPUB viola una regola della specifica ed è non valido. I negozi e l'invio a Kindle potrebbero rifiutarlo, e EPUBCheck termina con stato 1.

PDF a EPUB strumenti

Ogni strumento utilizza lo stesso motore. Fino a 3 libri al giorno sono gratuiti.

Vedi tutti gli strumenti