OPF-004f
Updated:
EPUBCheck OPF-004f is a warning message: “Invalid prefix declaration: found illegal whitespace between prefix mappings.” There is whitespace the syntax does not allow between two prefix mappings.
The official message
Invalid prefix declaration: found illegal whitespace between prefix mappings.
- Default severity
- Warning. The EPUB is still valid, but something is likely to cause problems in some reading apps. EPUBCheck exits with 0 unless you pass --failonwarnings.
- EPUBCheck version
- 5.4.0
Typical causes
- Mappings separated by something other than plain whitespace, or written without any separator.
- Hand-edited or tool-generated package documents that write the prefix attribute with the wrong separators.
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/". Separate each prefix-URI pair from the next with whitespace. - Reserved prefixes such as dcterms, rendition and schema need no declaration at all.
Terms used here
Other OPF messages
OPF-004Invalid prefix declaration: leading or trailing whitespace is not allowed.OPF-004aInvalid prefix declaration: found empty prefix.OPF-004bInvalid prefix "…": must be a valid non-colonized name (aka "NCName").OPF-004cInvalid prefix declaration: prefix "…" must be immediately followed by a colon character (":").OPF-004dInvalid prefix declaration: prefix "…" must be separated by its URI with a space.OPF-004eInvalid prefix declaration: found illegal whitespace between prefix and URI.
Message text and severity from EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Explanation by EPUBLab.