OPF-028
Updated:
EPUBCheck OPF-028 is an error message: “Undeclared prefix: "…".” A property uses a prefix that is not declared in the package document's prefix attribute.
The official message
Undeclared prefix: "%1$s".
- Default severity
- Error. The EPUB breaks a rule of the specification and is invalid. Stores and Send to Kindle may reject it, and EPUBCheck exits with status 1.
- EPUBCheck version
- 5.4.0
%1$s, %2$s… are filled in with the file, value or element EPUBCheck found.
Typical causes
- Vendor properties such as ibooks:version used without declaring the ibooks prefix.
How to fix it
- The prefix attribute on the package element maps short prefixes to vocabulary URIs, as space-separated pairs like
prefix="ibooks: http://vocabulary.itunes.apple.com/rdf/ibooks/vocabulary-extensions-1.0/". Add the mapping for the prefix, or remove the property.
Terms used here
Other OPF messages
OPF-027Undefined property: "…".OPF-029The file "…" does not appear to match the media type …, as specified in the OPF file.OPF-026Found malformed property value: "…".OPF-030The unique-identifier "…" was not found.OPF-025Property value list "…" is not allowed, only one value must be specified.OPF-031File listed in reference element in guide was not declared in OPF manifest: ….
Message text and severity from EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Explanation by EPUBLab.