Przejdź do treści
EPUBCheck · Dokument pakietu (OPF)

EPUBCheck OPF-017: pusty atrybut full-path rootfile

Zaktualizowane:

EPUBCheck OPF-017 to komunikat o błędzie: „The attribute "full-path" on element "rootfile" must not be empty.” Element rootfile w META-INF/container.xml ma pusty atrybut full-path. Atrybut musi zawierać ścieżkę do dokumentu pakietu; pusta wartość pozostawia aplikacje do czytania bez niczego do otwarcia.

Oficjalna wiadomość

The attribute "full-path" on element "rootfile" must not be empty.

Domyślna powaga
Błąd. EPUB łamie zasady specyfikacji i jest nieprawidłowy. Sklepy i Wysłanie do Kindle mogą go odrzucić, a EPUBCheck kończy działanie ze statusem 1.
Wersja EPUBCheck
5.4.0

Typowe przyczyny

  • Szablon container.xml, którego ścieżka nigdy nie została wypełniona.
  • Skrypt budujący, który zapisuje ścieżkę z zmiennej, która okazała się pusta.
  • Ścieżka usunięta przypadkowo podczas edytowania pliku.

Jak to naprawić

  1. Otwórz META-INF/container.xml.
  2. Zapisz ścieżkę dokumentu pakietu od korzenia archiwum, na przykład full-path="OEBPS/content.opf".
  3. Sprawdź, literka po literze, ścieżkę w porównaniu do rzeczywistego pliku, a następnie odbuduj EPUB.

Kiedy to nie to

Jeśli atrybut jest całkowicie brakujący, to jest OPF-016.

Terminy używane tutaj

Inne komunikaty OPF

  • OPF-016 The element "rootfile" is missing its required attribute "full-path".
  • OPF-018 The "remote-resources" property was declared in the Package Document, but no reference to remote resources has been found.
  • OPF-018b The "remote-resources" property was declared in the Package Document, but no reference to remote resources has been found; please check scripted content to make sure the property is legit.
  • OPF-015 The property "…" should not be declared in the OPF file.
  • OPF-014 The property "…" should be declared in the OPF file.
  • OPF-013 Resource "…" is declared with MIME type "…" in content, but has MIME type "…" in the package document.

Źródła

Tekst wiadomości i poważność z EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Wyjaśnienie przez EpubCC.

FAQ

Co oznacza EPUBCheck OPF-017?

EPUBCheck OPF-017 to komunikat o błędzie: „The attribute "full-path" on element "rootfile" must not be empty.” Element rootfile w META-INF/container.xml ma pusty atrybut full-path. Atrybut musi zawierać ścieżkę do dokumentu pakietu; pusta wartość pozostawia aplikacje do czytania bez niczego do otwarcia.

Czy OPF-017 jest błędem?

OPF-017 jest zgłaszane jako błąd domyślnie. EPUB łamie zasady specyfikacji i jest nieważne. Sklepy i Wysyłanie do Kindle mogą to odrzucić, a EPUBCheck kończy z kodem 1.

PDF do EPUB narzędzi

Każde narzędzie używa tej samej maszyny. Do 3 książek dziennie jest za darmo.

Zobacz wszystkie narzędzia