daisy / pipeline

Super-project that aggregates all Pipeline related code, provides a common tracker for Pipeline related issues and holds the Pipeline website
http://daisy.github.io/pipeline
21 stars 21 forks source link

epubcheck notes "ERROR" for rule OPF-028 in generated EPUB3 OPF #701

Closed jbrugge closed 10 months ago

jbrugge commented 1 year ago

Expected Behavior

When running the dtbook-to-epub3 script on DAISY books that have pagebreaks in them, the EPUB3 result should have an OPF file that passes epubcheck.

Actual Behavior

Running epubcheck against the generated output generates a report noting an issue with a meta item in the OPF. { "ID" : "OPF-028", "severity" : "ERROR", "message" : "Undeclared prefix: \"dc\".", "additionalLocations" : 0, "locations" : [ { "url" : { "opaque" : false, "hierarchical" : true }, "path" : "EPUB/package.opf", "line" : 2, "column" : 1359, "context" : null }

The line that this points to in the attached EPUB3 OPF is this: <meta xmlns:f="http://www.daisy.org/ns/pipeline/internal-functions" xmlns:pf="http://www.daisy.org/ns/pipeline/functions" xmlns:rdfa="rdfa-functions" property="dc:date">2023-04-20T22:13:09+00:00</meta>

Steps to Reproduce

The sample book in #674 exhibits this issue, so refer to the EPUB3 output from that.

The epubcheck report was then generated with this: epubcheck --json Sherlock_Holmes-epubcheck.json The_Adventures_of_Sherlock_H.epub

Environment

Logs

epubcheck JSON report

bertfrees commented 10 months ago

Fixed by https://github.com/daisy/pipeline-modules/commit/efb1b61b38395b33a5d0a942d27a761d8ffd95c4