EPUBCheck OPF-018b: niezbadane zasoby zdalne
Zaktualizowane:
EPUBCheck OPF-018b to komunikat o użyciu: „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.” Element manifestu deklaruje zasoby zdalne, nie znaleziono odniesienia do zdalnych zasobów, a dokument jest skryptowany. Ponieważ skrypt może ładować pliki z sieci w czasie działania, EPUBCheck nie może tego określić, więc zgłasza tylko notatkę o użyciu (oznaczoną -u).
Oficjalna wiadomość
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.
- Domyślna powaga
- Użycie. Tylko informacyjne i domyślnie ukryte: pojawia się, gdy EPUBCheck jest uruchamiane z -u (--usage). Nie czyni to EPUB nieważnym.
- Wersja EPUBCheck
- 5.4.0
Typowe przyczyny
- Dokument skryptowany, który kiedyś ładował zdalną zawartość, a teraz już tego nie robi.
- Szablon, który deklaruje zarówno zasoby skryptowe, jak i zdalne w każdym dokumencie.
- Skrypt, który pobiera pliki zdalne, których EPUBCheck nie może zobaczyć; w takim przypadku właściwość jest poprawna.
Jak to naprawić
- Otwórz dokument i sprawdź, jakie skrypty ładują.
- Jeśli skrypt pobiera cokolwiek z adresu http lub https, zachowaj remote-resources.
- Jeśli nic zdalnego nie jest załadowane, usuń zasoby zdalne z elementu manifestu.
Kiedy to nie to
Jeśli dokument nie ma skryptów, ta sama sytuacja jest zgłaszana jako OPF-018, ostrzeżenie.
Terminy używane tutaj
Inne komunikaty OPF
OPF-018The "remote-resources" property was declared in the Package Document, but no reference to remote resources has been found.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.