Package: dbtoepub Version: 0+svn9150-2 When using dbtoepub to generate a epub version of the Free Culture book, the output from epubcheck report many problems with the resulting file. The docbook source for the book can be found via <URL: https://github.com/petterreinholdtsen/free-culture-lessig/ >
Here are some examples from the epubcheck output: Validating against EPUB version 2.0 - custom validation Validating using EPUB version 2.0 rules. ERROR(RSC-005): freeculture.epub/OEBPS/pt01.html(13,43): Error while parsing file 'element "a" not allowed here; expected the element end-tag or element "address", "blockquote", "del", "div", "dl", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ins", "noscript", "ns:svg", "ol", "p", "pre", "script", "table" or "ul" (with xmlns:ns="http://www.w3.org/2000/svg")'. ERROR(RSC-005): freeculture.epub/OEBPS/ch03.html(325,43): Error while parsing file 'element "a" not allowed here; expected the element end-tag or element "address", "blockquote", "del", "div", "dl", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ins", "noscript", "ns:svg", "ol", "p", "pre", "script", "table" or "ul" (with xmlns:ns="http://www.w3.org/2000/svg")'. [...] ERROR(RSC-005): freeculture.epub/OEBPS/images/1331.svg(19,32): Error while parsing file 'attribute "inkscape:version" not allowed here; expected attribute "alignment-baseline", "baseProfile", "baseline-shift", "class", "clip", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "contentScriptType", "contentStyleType", "cursor", "direction", "display", "dominant-baseline", "enable-background", "externalResourcesRequired", "fill", "fill-opacity", "fill-rule", "filter", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "glyph-orientation-horizontal", "glyph-orientation-vertical", "image-rendering", "kerning", "letter-spacing", "lighting-color", "marker-end", "marker-mid", "marker-start", "mask", "onabort", "onactivate", "onclick", "onerror", "onfocusin", "onfocusout", "onload", "onmousedown", "onmousemove", "onmouseout", "onmouseover", "onmouseup", "onresize", "onscroll", "onunload", "onzoom", "opacity", "overflow", "pointer-events", "preserveAspectRatio", "requiredExtensions", "requiredFeatures", "shape-rendering", "stop-color", "stop-opacity", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke-width", "style", "systemLanguage", "text-anchor", "text-decoration", "text-rendering", "unicode-bidi", "viewBox", "visibility", "word-spacing", "writing-mode", "x", "xml:base", "xml:lang", "xml:space", "y" or "zoomAndPan"'. [...] ERROR(RSC-012): freeculture.epub/OEBPS/ix01.html(3,6643): Fragment identifier is not defined. [...] Why do dbtoepub and epubcheck not agree on what a epub file should look like? I tested using dbtoepub version 0+svn9904-1 and this too causes epubcheck to report lots of errors. -- Happy hacking Petter Reinholdtsen