epubcheck icon indicating copy to clipboard operation
epubcheck copied to clipboard

epubcheck 5.1.0 failing on books with TDM opt-outs

Open liisamk opened this issue 1 year ago • 3 comments

When we test including a TDM opt-out in our OPF files, we are consistently getting an epubcheck error: ERROR (OPF-028): Undeclared prefix: "tdm"

Since this is an industry standard that many publishers around the world are starting to implement, it should be fixed.

Example file TK

liisamk avatar Sep 13 '24 15:09 liisamk

for context https://www.w3.org/community/reports/tdmrep/CG-FINAL-tdmrep-20240510/#sec-epub3

TzviyaSiegman avatar Sep 13 '24 15:09 TzviyaSiegman

Have you declared a prefix as in the example @TzviyaSiegman cited?

If so, what version of epubcheck are you running? I can't reproduce the error if the prefix is declared.

If you're wanting to skip declaring a prefix, you need to get the epub standard amended to add tdm as a reserved prefix.

mattgarrish avatar Sep 13 '24 15:09 mattgarrish

Ah- mea culpa. The prefix was not declared. When we add it, the validation in 5.1.0 works.

liisamk avatar Sep 13 '24 17:09 liisamk