# EPUBCheck OPF-004c: Invalid prefix declaration: prefix …

Source: https://epublab.com/epubcheck/opf-004c/ (updated 2026-11-03)

EPUBCheck OPF-004c is an error message: “Invalid prefix declaration: prefix "…" must be immediately followed by a colon character (":").” A prefix in the prefix attribute is not immediately followed by a colon.

- Official message (EPUBCheck 5.4.0): Invalid prefix declaration: prefix "%1$s" must be immediately followed by a colon character (":").
- Default severity: Error

## Typical causes

- A space between the name and the colon, as in "ibooks : http://…".
- 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/". Write the colon right after the name, then one space, then the URI.
- Reserved prefixes such as dcterms, rendition and schema need no declaration at all.

Message text and severity: EPUBCheck (W3C, BSD-3-Clause). Explanation: EPUBLab.
