EPUBCheck OPF-018: niepotrzebne zasoby zdalne
Zaktualizowane:
EPUBCheck OPF-018 to komunikat ostrzegawczy: „The "remote-resources" property was declared in the Package Document, but no reference to remote resources has been found.” Element manifestu deklaruje zasoby zdalne, ale EPUBCheck nie znalazł odniesienia do zasobu zdalnego. Właściwość informuje aplikacje do czytania, że dokument wymaga dostępu do sieci, więc powinna być obecna tylko wtedy, gdy jest to prawdą.
Oficjalna wiadomość
The "remote-resources" property was declared in the Package Document, but no reference to remote resources has been found.
- Domyślna powaga
- Ostrzeżenie. EPUB jest wciąż ważny, ale coś może powodować problemy w niektórych aplikacjach do czytania. EPUBCheck kończy działanie z wynikiem 0, chyba że przekażesz --failonwarnings.
- Wersja EPUBCheck
- 5.4.0
Typowe przyczyny
- Zdalny obraz, czcionka, dźwięk lub wideo zostały usunięte lub skopiowane do EPUB, ale właściwość pozostała.
- Szablon manifestu, który zadeklarował zasoby zdalne w każdym dokumencie.
- Narzędzie, które domyślnie dodaje właściwość.
Jak to naprawić
- Znajdź element manifestu, do którego odnosi się EPUBCheck.
- Potwierdź, że dokument nie ładuje już nic z adresu http lub https.
- Usuń remote-resources z atrybutu właściwości tego elementu, zachowując wszelkie inne właściwości.
Kiedy to nie to
Jeśli dokument używa skryptów, EPUBCheck zgłasza OPF-018b zamiast tego, ponieważ skrypt mógłby załadować zasób.
Terminy używane tutaj
Inne komunikaty OPF
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-017The attribute "full-path" on element "rootfile" must not be empty.OPF-016The element "rootfile" is missing its required attribute "full-path".OPF-015The property "…" should not be declared in the OPF file.OPF-021Use of non-registered URI scheme type in href: "…".OPF-014The property "…" should be declared in the OPF file.
Źródła
- EPUB 3.3, §D.6.4 remote-resources · czytaj
Tekst wiadomości i poważność z EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Wyjaśnienie przez EpubCC.