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ć
- Otwórz META-INF/container.xml.
- Zapisz ścieżkę dokumentu pakietu od korzenia archiwum, na przykład full-path="OEBPS/content.opf".
- 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-016The element "rootfile" is missing its required attribute "full-path".OPF-018The "remote-resources" property was declared in the Package Document, but no reference to remote resources has been found.OPF-018bThe "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-015The property "…" should not be declared in the OPF file.OPF-014The property "…" should be declared in the OPF file.OPF-013Resource "…" 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.