From 0b346fde2a3105b2ec6354d78a18d9c2bf4defc0 Mon Sep 17 00:00:00 2001 From: Thomas Ledoux Date: Sat, 10 Aug 2019 15:10:38 +0200 Subject: [PATCH] feat: update the XML ouput to the new JHOVE schema This new schema has been published and includes an 'id' attribute as well as a `warning` level. So the alignment between the severity attribute and the level is now straightforward. EPUBCheck severity | JHOVE severity attribute -------------------| ------------------ fatal error | error error | error warn | warning hint | info Fixes #789 --- .../adobe/epubcheck/util/XmlReportImpl.java | 12 +- .../test/DTBook/Basic_expected_results.xml | 8 +- .../command_line/xmlfile_expected_results.xml | 26 ++-- .../test/css/discouraged_expected_results.xml | 142 +++++++++--------- .../font-family-no-src_expected_results.xml | 42 +++--- .../font_encryption_idpf_expected_results.xml | 112 +++++++------- ...n_binary_content.epub_expected_results.xml | 14 +- ...nimal_encryption.epub_expected_results.xml | 14 +- ...font_obfuscation.epub_expected_results.xml | 4 +- .../opf/Epub2_marked_v3_expected_results.xml | 12 +- .../opf/Epub3_marked_v2_expected_results.xml | 22 +-- .../Missing_Spine_epub3_expected_results.xml | 12 +- ...cation_Metadata_epub3_expected_results.xml | 8 +- ...teresting_paths_epub2_expected_results.xml | 14 +- ...teresting_paths_epub3_expected_results.xml | 32 ++-- 15 files changed, 237 insertions(+), 237 deletions(-) diff --git a/src/main/java/com/adobe/epubcheck/util/XmlReportImpl.java b/src/main/java/com/adobe/epubcheck/util/XmlReportImpl.java index a7a474bf9..4eacebd51 100644 --- a/src/main/java/com/adobe/epubcheck/util/XmlReportImpl.java +++ b/src/main/java/com/adobe/epubcheck/util/XmlReportImpl.java @@ -26,13 +26,13 @@ public int generateReport() generationDate = fromTime(System.currentTimeMillis()); try { - setNamespace("http://hul.harvard.edu/ois/xml/ns/jhove"); + setNamespace("http://schema.openpreservation.org/ois/xml/ns/jhove"); addPrefixNamespace("xsi","http://www.w3.org/2001/XMLSchema-instance"); List> attrs = new ArrayList>(); attrs.add(KeyValue.with("name", epubCheckName)); attrs.add(KeyValue.with("release", epubCheckVersion)); attrs.add(KeyValue.with("date", epubCheckDate)); - attrs.add(KeyValue.with("xsi:schemaLocation", "http://hul.harvard.edu/ois/xml/ns/jhove http://hul.harvard.edu/ois/xml/xsd/jhove/jhove.xsd")); + attrs.add(KeyValue.with("xsi:schemaLocation", "http://schema.openpreservation.org/ois/xml/ns/jhove https://schema.openpreservation.org/ois/xml/xsd/jhove/jhove.xsd")); startElement("jhove", attrs); generateElement("date", generationDate); @@ -69,7 +69,7 @@ public int generateReport() loc = " (" + ml.getLine() + "-" + ml.getColumn() + ")"; } generateElement("message", m + PathUtil.removeWorkingDirectory(ml.getPath()) + loc, - KeyValue.with("subMessage", c.getID()), KeyValue.with("severity", "error")); + KeyValue.with("id", c.getID()), KeyValue.with("severity", "error")); } } for (CheckMessage c : errors) { @@ -80,7 +80,7 @@ public int generateReport() loc = " (" + ml.getLine() + "-" + ml.getColumn() + ")"; } generateElement("message", m + PathUtil.removeWorkingDirectory(ml.getPath()) + loc, - KeyValue.with("subMessage", c.getID()), KeyValue.with("severity", "error")); + KeyValue.with("id", c.getID()), KeyValue.with("severity", "error")); } } for (CheckMessage c : warns) { @@ -91,7 +91,7 @@ public int generateReport() loc = " (" + ml.getLine() + "-" + ml.getColumn() + ")"; } generateElement("message", m + PathUtil.removeWorkingDirectory(ml.getPath()) + loc, - KeyValue.with("subMessage", c.getID()), KeyValue.with("severity", "error")); + KeyValue.with("id", c.getID()), KeyValue.with("severity", "warning")); } } for (CheckMessage c : hints) { @@ -102,7 +102,7 @@ public int generateReport() loc = " (" + ml.getLine() + "-" + ml.getColumn() + ")"; } generateElement("message", m + PathUtil.removeWorkingDirectory(ml.getPath()) + loc, - KeyValue.with("subMessage", c.getID()), KeyValue.with("severity", "info")); + KeyValue.with("id", c.getID()), KeyValue.with("severity", "info")); } } endElement("messages"); diff --git a/src/test/resources/com/adobe/epubcheck/test/DTBook/Basic_expected_results.xml b/src/test/resources/com/adobe/epubcheck/test/DTBook/Basic_expected_results.xml index ec99d5a8a..d5a293172 100644 --- a/src/test/resources/com/adobe/epubcheck/test/DTBook/Basic_expected_results.xml +++ b/src/test/resources/com/adobe/epubcheck/test/DTBook/Basic_expected_results.xml @@ -1,10 +1,10 @@ - + xsi:schemaLocation="http://schema.openpreservation.org/ois/xml/ns/jhove https://schema.openpreservation.org/ois/xml/xsd/jhove/jhove.xsd"> 2017-01-02T18:40:30+01:00 2017-01-02T18:34:14Z @@ -12,8 +12,8 @@ 2.0.1 Well-formed - OPF-021, WARN, [Use of non-registered URI scheme type in href: 'waka://barnesandnoble.com'.], OPS/AreYouReadyV3.xml (25-69) - HTM-010, HINT, [Namespace uri 'http://www.daisy.org/z3986/2005/ncx/' was found.], OPS/toc.ncx (2-68) + OPF-021, WARN, [Use of non-registered URI scheme type in href: 'waka://barnesandnoble.com'.], OPS/AreYouReadyV3.xml (25-69) + HTM-010, HINT, [Namespace uri 'http://www.daisy.org/z3986/2005/ncx/' was found.], OPS/toc.ncx (2-68) application/epub+zip diff --git a/src/test/resources/com/adobe/epubcheck/test/command_line/xmlfile_expected_results.xml b/src/test/resources/com/adobe/epubcheck/test/command_line/xmlfile_expected_results.xml index a8abc9a13..143ff5c52 100644 --- a/src/test/resources/com/adobe/epubcheck/test/command_line/xmlfile_expected_results.xml +++ b/src/test/resources/com/adobe/epubcheck/test/command_line/xmlfile_expected_results.xml @@ -1,10 +1,10 @@ - + xsi:schemaLocation="http://schema.openpreservation.org/ois/xml/ns/jhove https://schema.openpreservation.org/ois/xml/xsd/jhove/jhove.xsd"> 2019-02-05T15:38:26+01:00 2019-02-05T15:38:16Z @@ -13,17 +13,17 @@ 3.0.1 Well-formed - ACC-008, HINT, [Navigation Document has no 'landmarks nav' element.], OPS/toc.xhtml - HTM-010, HINT, [Namespace uri 'http://www.daisy.org/z3986/2005/ncx/' was found.], OPS/toc.ncx (2-68) - CSS-009, HINT, [Use of certain CSS such as Columns, Transforms, Transitions, box-sizing or KeyFrames can cause pagination issues.], OPS/style.css (3-23) - CSS-009, HINT, [Use of certain CSS such as Columns, Transforms, Transitions, box-sizing or KeyFrames can cause pagination issues.], OPS/style.css (8-23) - CSS-009, HINT, [Use of certain CSS such as Columns, Transforms, Transitions, box-sizing or KeyFrames can cause pagination issues.], OPS/style_tag_css.xhtml (8-31) - CSS-009, HINT, [Use of certain CSS such as Columns, Transforms, Transitions, box-sizing or KeyFrames can cause pagination issues.], OPS/style_tag_css.xhtml (13-31) - CSS-009, HINT, [Use of certain CSS such as Columns, Transforms, Transitions, box-sizing or KeyFrames can cause pagination issues.], OPS/style_tag_css.xhtml (5-28) - ACC-013, HINT, [Content file contains at least one inline style declaration.], OPS/inline_css.xhtml (10-119) - ACC-013, HINT, [Content file contains at least one inline style declaration.], OPS/inline_css.xhtml (11-115) - ACC-013, HINT, [Content file contains at least one inline style declaration.], OPS/inline_css.xhtml (14-116) - ACC-013, HINT, [Content file contains at least one inline style declaration.], OPS/inline_css.xhtml (15-114) + ACC-008, HINT, [Navigation Document has no 'landmarks nav' element.], OPS/toc.xhtml + HTM-010, HINT, [Namespace uri 'http://www.daisy.org/z3986/2005/ncx/' was found.], OPS/toc.ncx (2-68) + CSS-009, HINT, [Use of certain CSS such as Columns, Transforms, Transitions, box-sizing or KeyFrames can cause pagination issues.], OPS/style.css (3-23) + CSS-009, HINT, [Use of certain CSS such as Columns, Transforms, Transitions, box-sizing or KeyFrames can cause pagination issues.], OPS/style.css (8-23) + CSS-009, HINT, [Use of certain CSS such as Columns, Transforms, Transitions, box-sizing or KeyFrames can cause pagination issues.], OPS/style_tag_css.xhtml (8-31) + CSS-009, HINT, [Use of certain CSS such as Columns, Transforms, Transitions, box-sizing or KeyFrames can cause pagination issues.], OPS/style_tag_css.xhtml (13-31) + CSS-009, HINT, [Use of certain CSS such as Columns, Transforms, Transitions, box-sizing or KeyFrames can cause pagination issues.], OPS/style_tag_css.xhtml (5-28) + ACC-013, HINT, [Content file contains at least one inline style declaration.], OPS/inline_css.xhtml (10-119) + ACC-013, HINT, [Content file contains at least one inline style declaration.], OPS/inline_css.xhtml (11-115) + ACC-013, HINT, [Content file contains at least one inline style declaration.], OPS/inline_css.xhtml (14-116) + ACC-013, HINT, [Content file contains at least one inline style declaration.], OPS/inline_css.xhtml (15-114) application/epub+zip diff --git a/src/test/resources/com/adobe/epubcheck/test/css/discouraged_expected_results.xml b/src/test/resources/com/adobe/epubcheck/test/css/discouraged_expected_results.xml index 5255f5e6a..6743db88a 100644 --- a/src/test/resources/com/adobe/epubcheck/test/css/discouraged_expected_results.xml +++ b/src/test/resources/com/adobe/epubcheck/test/css/discouraged_expected_results.xml @@ -1,10 +1,10 @@ - + xsi:schemaLocation="http://schema.openpreservation.org/ois/xml/ns/jhove https://schema.openpreservation.org/ois/xml/xsd/jhove/jhove.xsd"> 2019-02-05T15:52:56+01:00 2019-02-05T15:38:16Z @@ -13,75 +13,75 @@ 3.0.1 Not well-formed - CSS-001, ERROR, [The "unicode-bidi" property must not be included in an EPUB Style Sheet.], OPS/style_tag_css.xhtml (27-13) - CSS-001, ERROR, [The "unicode-bidi" property must not be included in an EPUB Style Sheet.], OPS/inline_css.xhtml (14-1) - CSS-001, ERROR, [The "unicode-bidi" property must not be included in an EPUB Style Sheet.], OPS/style.css (55-5) - CSS-001, ERROR, [The "direction" property must not be included in an EPUB Style Sheet.], OPS/inline_css.xhtml (14-22) - CSS-001, ERROR, [The "direction" property must not be included in an EPUB Style Sheet.], OPS/style.css (56-5) - CSS-006, HINT, [CSS position:fixed property should not be used in EPUBs.], OPS/style_tag_css.xhtml (38-13) - CSS-006, HINT, [CSS position:fixed property should not be used in EPUBs.], OPS/inline_css.xhtml (15-1) - CSS-006, HINT, [CSS position:fixed property should not be used in EPUBs.], OPS/style.css (66-5) - CSS-017, HINT, [CSS selector specifies absolute position.], OPS/style.css (70-5) - CSS-017, HINT, [CSS selector specifies absolute position.], OPS/cssStyles.css (2-5) - CSS-017, HINT, [CSS selector specifies absolute position.], OPS/style_tag_css.xhtml (17-13) - ACC-008, HINT, [Navigation Document has no "landmarks nav" element.], OPS/toc.xhtml - HTM-010, HINT, [Namespace uri "http://www.daisy.org/z3986/2005/ncx/" was found.], OPS/toc.ncx (2-68) - CSS-012, HINT, [Document links to multiple CSS files.], OPS/external_css.xhtml (6-62) - CSS-012, HINT, [Document links to multiple CSS files.], OPS/external_css.xhtml (7-66) - ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "14px"], OPS/style.css (2-5) - ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "14px"], OPS/unused.css (23-5) - ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "12px"], OPS/style.css (7-5) - ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "12px"], OPS/style.css (27-5) - ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "12px"], OPS/unused.css (8-5) - ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "12px"], OPS/unused.css (32-5) - ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "12px"], OPS/unused.css (38-5) - ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "12px"], OPS/cssStyles.css (10-5) - ACC-015, HINT, [Value of CSS property "line-height" does not use a relative size.], OPS/style.css (7-5) - ACC-015, HINT, [Value of CSS property "line-height" does not use a relative size.], OPS/style.css (27-5) - ACC-015, HINT, [Value of CSS property "line-height" does not use a relative size.], OPS/cssStyles.css (10-5) - CSS-021, HINT, [Shorthand CSS property "font-family" specifies an invalid System Font.], OPS/style.css (11-5) - ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "18px"], OPS/style.css (15-5) - ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "18px"], OPS/style.css (19-5) - ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "x-large"], OPS/style.css (35-5) - ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "large"], OPS/style.css (39-5) - ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "large"], OPS/style.css (90-5) - ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "large"], OPS/style.css (99-9) - ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "large"], OPS/cssStyles.css (27-5) - ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "large"], OPS/cssStyles.css (35-9) - CSS-013, HINT, [CSS property is declared !Important.], OPS/style.css (79-5) - CSS-013, HINT, [CSS property is declared !Important.], OPS/cssStyles.css (15-5) - CSS-013, HINT, [CSS property is declared !Important.], OPS/style_tag_css.xhtml (9-13) - CSS-023, HINT, [CSS selector specifies media query.], OPS/style.css (97-1) - CSS-023, HINT, [CSS selector specifies media query.], OPS/cssStyles.css (33-1) - CSS-023, HINT, [CSS selector specifies media query.], OPS/style_tag_css.xhtml (20-9) - ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "22px"], OPS/unused.css (14-5) - ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "11px"], OPS/unused.css (51-5) - ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "10px"], OPS/unused.css (58-5) - CSS-025, HINT, [CSS class Selector could not be found.], OPS/style_tag_css.xhtml (54-24) - CSS-024, HINT, [CSS class Selector is not used.], OPS/style_tag_css.xhtml (14-9) - CSS-024, HINT, [CSS class Selector is not used.], OPS/style.css (6-1) - CSS-024, HINT, [CSS class Selector is not used.], OPS/style.css (10-1) - CSS-024, HINT, [CSS class Selector is not used.], OPS/style.css (14-1) - CSS-024, HINT, [CSS class Selector is not used.], OPS/style.css (18-1) - CSS-024, HINT, [CSS class Selector is not used.], OPS/style.css (22-1) - CSS-024, HINT, [CSS class Selector is not used.], OPS/style.css (30-1) - CSS-024, HINT, [CSS class Selector is not used.], OPS/style.css (34-1) - CSS-024, HINT, [CSS class Selector is not used.], OPS/style.css (38-1) - CSS-024, HINT, [CSS class Selector is not used.], OPS/style.css (42-1) - CSS-024, HINT, [CSS class Selector is not used.], OPS/style.css (46-1) - CSS-024, HINT, [CSS class Selector is not used.], OPS/style.css (82-1) - CSS-024, HINT, [CSS class Selector is not used.], OPS/style.css (98-5) - CSS-024, HINT, [CSS class Selector is not used.], OPS/unused.css (1-1) - CSS-024, HINT, [CSS class Selector is not used.], OPS/unused.css (30-1) - CSS-024, HINT, [CSS class Selector is not used.], OPS/unused.css (36-1) - CSS-024, HINT, [CSS class Selector is not used.], OPS/unused.css (49-1) - CSS-024, HINT, [CSS class Selector is not used.], OPS/unused.css (56-1) - CSS-024, HINT, [CSS class Selector is not used.], OPS/unused.css (62-1) - CSS-024, HINT, [CSS class Selector is not used.], OPS/unused.css (66-3) - ACC-013, HINT, [Content file contains at least one inline style declaration.], OPS/inline_css.xhtml (10-54) - ACC-013, HINT, [Content file contains at least one inline style declaration.], OPS/inline_css.xhtml (11-97) - ACC-013, HINT, [Content file contains at least one inline style declaration.], OPS/inline_css.xhtml (14-50) - ACC-013, HINT, [Content file contains at least one inline style declaration.], OPS/inline_css.xhtml (15-41) + CSS-001, ERROR, [The "unicode-bidi" property must not be included in an EPUB Style Sheet.], OPS/style_tag_css.xhtml (27-13) + CSS-001, ERROR, [The "unicode-bidi" property must not be included in an EPUB Style Sheet.], OPS/inline_css.xhtml (14-1) + CSS-001, ERROR, [The "unicode-bidi" property must not be included in an EPUB Style Sheet.], OPS/style.css (55-5) + CSS-001, ERROR, [The "direction" property must not be included in an EPUB Style Sheet.], OPS/inline_css.xhtml (14-22) + CSS-001, ERROR, [The "direction" property must not be included in an EPUB Style Sheet.], OPS/style.css (56-5) + CSS-006, HINT, [CSS position:fixed property should not be used in EPUBs.], OPS/style_tag_css.xhtml (38-13) + CSS-006, HINT, [CSS position:fixed property should not be used in EPUBs.], OPS/inline_css.xhtml (15-1) + CSS-006, HINT, [CSS position:fixed property should not be used in EPUBs.], OPS/style.css (66-5) + CSS-017, HINT, [CSS selector specifies absolute position.], OPS/style.css (70-5) + CSS-017, HINT, [CSS selector specifies absolute position.], OPS/cssStyles.css (2-5) + CSS-017, HINT, [CSS selector specifies absolute position.], OPS/style_tag_css.xhtml (17-13) + ACC-008, HINT, [Navigation Document has no "landmarks nav" element.], OPS/toc.xhtml + HTM-010, HINT, [Namespace uri "http://www.daisy.org/z3986/2005/ncx/" was found.], OPS/toc.ncx (2-68) + CSS-012, HINT, [Document links to multiple CSS files.], OPS/external_css.xhtml (6-62) + CSS-012, HINT, [Document links to multiple CSS files.], OPS/external_css.xhtml (7-66) + ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "14px"], OPS/style.css (2-5) + ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "14px"], OPS/unused.css (23-5) + ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "12px"], OPS/style.css (7-5) + ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "12px"], OPS/style.css (27-5) + ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "12px"], OPS/unused.css (8-5) + ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "12px"], OPS/unused.css (32-5) + ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "12px"], OPS/unused.css (38-5) + ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "12px"], OPS/cssStyles.css (10-5) + ACC-015, HINT, [Value of CSS property "line-height" does not use a relative size.], OPS/style.css (7-5) + ACC-015, HINT, [Value of CSS property "line-height" does not use a relative size.], OPS/style.css (27-5) + ACC-015, HINT, [Value of CSS property "line-height" does not use a relative size.], OPS/cssStyles.css (10-5) + CSS-021, HINT, [Shorthand CSS property "font-family" specifies an invalid System Font.], OPS/style.css (11-5) + ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "18px"], OPS/style.css (15-5) + ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "18px"], OPS/style.css (19-5) + ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "x-large"], OPS/style.css (35-5) + ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "large"], OPS/style.css (39-5) + ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "large"], OPS/style.css (90-5) + ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "large"], OPS/style.css (99-9) + ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "large"], OPS/cssStyles.css (27-5) + ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "large"], OPS/cssStyles.css (35-9) + CSS-013, HINT, [CSS property is declared !Important.], OPS/style.css (79-5) + CSS-013, HINT, [CSS property is declared !Important.], OPS/cssStyles.css (15-5) + CSS-013, HINT, [CSS property is declared !Important.], OPS/style_tag_css.xhtml (9-13) + CSS-023, HINT, [CSS selector specifies media query.], OPS/style.css (97-1) + CSS-023, HINT, [CSS selector specifies media query.], OPS/cssStyles.css (33-1) + CSS-023, HINT, [CSS selector specifies media query.], OPS/style_tag_css.xhtml (20-9) + ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "22px"], OPS/unused.css (14-5) + ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "11px"], OPS/unused.css (51-5) + ACC-014, HINT, [Value of CSS property "font-size" does not use a relative size: "10px"], OPS/unused.css (58-5) + CSS-025, HINT, [CSS class Selector could not be found.], OPS/style_tag_css.xhtml (54-24) + CSS-024, HINT, [CSS class Selector is not used.], OPS/style_tag_css.xhtml (14-9) + CSS-024, HINT, [CSS class Selector is not used.], OPS/style.css (6-1) + CSS-024, HINT, [CSS class Selector is not used.], OPS/style.css (10-1) + CSS-024, HINT, [CSS class Selector is not used.], OPS/style.css (14-1) + CSS-024, HINT, [CSS class Selector is not used.], OPS/style.css (18-1) + CSS-024, HINT, [CSS class Selector is not used.], OPS/style.css (22-1) + CSS-024, HINT, [CSS class Selector is not used.], OPS/style.css (30-1) + CSS-024, HINT, [CSS class Selector is not used.], OPS/style.css (34-1) + CSS-024, HINT, [CSS class Selector is not used.], OPS/style.css (38-1) + CSS-024, HINT, [CSS class Selector is not used.], OPS/style.css (42-1) + CSS-024, HINT, [CSS class Selector is not used.], OPS/style.css (46-1) + CSS-024, HINT, [CSS class Selector is not used.], OPS/style.css (82-1) + CSS-024, HINT, [CSS class Selector is not used.], OPS/style.css (98-5) + CSS-024, HINT, [CSS class Selector is not used.], OPS/unused.css (1-1) + CSS-024, HINT, [CSS class Selector is not used.], OPS/unused.css (30-1) + CSS-024, HINT, [CSS class Selector is not used.], OPS/unused.css (36-1) + CSS-024, HINT, [CSS class Selector is not used.], OPS/unused.css (49-1) + CSS-024, HINT, [CSS class Selector is not used.], OPS/unused.css (56-1) + CSS-024, HINT, [CSS class Selector is not used.], OPS/unused.css (62-1) + CSS-024, HINT, [CSS class Selector is not used.], OPS/unused.css (66-3) + ACC-013, HINT, [Content file contains at least one inline style declaration.], OPS/inline_css.xhtml (10-54) + ACC-013, HINT, [Content file contains at least one inline style declaration.], OPS/inline_css.xhtml (11-97) + ACC-013, HINT, [Content file contains at least one inline style declaration.], OPS/inline_css.xhtml (14-50) + ACC-013, HINT, [Content file contains at least one inline style declaration.], OPS/inline_css.xhtml (15-41) application/epub+zip diff --git a/src/test/resources/com/adobe/epubcheck/test/css/font-family-no-src_expected_results.xml b/src/test/resources/com/adobe/epubcheck/test/css/font-family-no-src_expected_results.xml index 2ef36cae2..030f7c9a5 100644 --- a/src/test/resources/com/adobe/epubcheck/test/css/font-family-no-src_expected_results.xml +++ b/src/test/resources/com/adobe/epubcheck/test/css/font-family-no-src_expected_results.xml @@ -1,10 +1,10 @@ - + xsi:schemaLocation="http://schema.openpreservation.org/ois/xml/ns/jhove https://schema.openpreservation.org/ois/xml/xsd/jhove/jhove.xsd"> 2019-02-05T15:52:56+01:00 2019-02-05T15:38:16Z @@ -13,25 +13,25 @@ 3.0.1 Not well-formed - RSC-007, ERROR, [Referenced resource 'OPS/fonts/bloody.woff' could not be found in the EPUB.], OPS/style_tag_css.xhtml (9-13) - RSC-007, ERROR, [Referenced resource 'OPS/fonts/badaboom.woff' could not be found in the EPUB.], OPS/style_tag_css.xhtml (14-13) - CSS-028, HINT, [Use of Font-face declaration.], OPS/style_tag_css.xhtml (8-13) - CSS-028, HINT, [Use of Font-face declaration.], OPS/style_tag_css.xhtml (9-13) - CSS-028, HINT, [Use of Font-face declaration.], OPS/style_tag_css.xhtml (13-13) - CSS-028, HINT, [Use of Font-face declaration.], OPS/style_tag_css.xhtml (14-13) - CSS-028, HINT, [Use of Font-face declaration.], OPS/styles/style.css (2-5) - CSS-028, HINT, [Use of Font-face declaration.], OPS/styles/style.css (6-5) - CSS-028, HINT, [Use of Font-face declaration.], OPS/styles/style.css (10-5) - CSS-028, HINT, [Use of Font-face declaration.], OPS/styles/style.css (14-5) - CSS-028, HINT, [Use of Font-face declaration.], OPS/styles/style.css (18-5) - ACC-008, HINT, [Navigation Document has no 'landmarks nav' element.], OPS/toc.xhtml - HTM-010, HINT, [Namespace uri 'http://www.daisy.org/z3986/2005/ncx/' was found.], OPS/toc.ncx (2-68) - ACC-014, HINT, [Value of CSS property 'font-size' does not use a relative size: 'xx-large'], OPS/styles/style.css (26-5) - ACC-014, HINT, [Value of CSS property 'font-size' does not use a relative size: 'xx-large'], OPS/styles/style.css (32-5) - ACC-014, HINT, [Value of CSS property 'font-size' does not use a relative size: 'xx-large'], OPS/styles/style.css (38-5) - ACC-014, HINT, [Value of CSS property 'font-size' does not use a relative size: 'xx-large'], OPS/styles/style.css (44-5) - ACC-014, HINT, [Value of CSS property 'font-size' does not use a relative size: 'xx-large'], OPS/styles/style.css (50-5) - ACC-014, HINT, [Value of CSS property 'font-size' does not use a relative size: 'xx-large'], OPS/styles/style.css (56-5) + RSC-007, ERROR, [Referenced resource 'OPS/fonts/bloody.woff' could not be found in the EPUB.], OPS/style_tag_css.xhtml (9-13) + RSC-007, ERROR, [Referenced resource 'OPS/fonts/badaboom.woff' could not be found in the EPUB.], OPS/style_tag_css.xhtml (14-13) + CSS-028, HINT, [Use of Font-face declaration.], OPS/style_tag_css.xhtml (8-13) + CSS-028, HINT, [Use of Font-face declaration.], OPS/style_tag_css.xhtml (9-13) + CSS-028, HINT, [Use of Font-face declaration.], OPS/style_tag_css.xhtml (13-13) + CSS-028, HINT, [Use of Font-face declaration.], OPS/style_tag_css.xhtml (14-13) + CSS-028, HINT, [Use of Font-face declaration.], OPS/styles/style.css (2-5) + CSS-028, HINT, [Use of Font-face declaration.], OPS/styles/style.css (6-5) + CSS-028, HINT, [Use of Font-face declaration.], OPS/styles/style.css (10-5) + CSS-028, HINT, [Use of Font-face declaration.], OPS/styles/style.css (14-5) + CSS-028, HINT, [Use of Font-face declaration.], OPS/styles/style.css (18-5) + ACC-008, HINT, [Navigation Document has no 'landmarks nav' element.], OPS/toc.xhtml + HTM-010, HINT, [Namespace uri 'http://www.daisy.org/z3986/2005/ncx/' was found.], OPS/toc.ncx (2-68) + ACC-014, HINT, [Value of CSS property 'font-size' does not use a relative size: 'xx-large'], OPS/styles/style.css (26-5) + ACC-014, HINT, [Value of CSS property 'font-size' does not use a relative size: 'xx-large'], OPS/styles/style.css (32-5) + ACC-014, HINT, [Value of CSS property 'font-size' does not use a relative size: 'xx-large'], OPS/styles/style.css (38-5) + ACC-014, HINT, [Value of CSS property 'font-size' does not use a relative size: 'xx-large'], OPS/styles/style.css (44-5) + ACC-014, HINT, [Value of CSS property 'font-size' does not use a relative size: 'xx-large'], OPS/styles/style.css (50-5) + ACC-014, HINT, [Value of CSS property 'font-size' does not use a relative size: 'xx-large'], OPS/styles/style.css (56-5) application/epub+zip diff --git a/src/test/resources/com/adobe/epubcheck/test/css/font_encryption_idpf_expected_results.xml b/src/test/resources/com/adobe/epubcheck/test/css/font_encryption_idpf_expected_results.xml index 02ee43ef1..6cdfc60cc 100644 --- a/src/test/resources/com/adobe/epubcheck/test/css/font_encryption_idpf_expected_results.xml +++ b/src/test/resources/com/adobe/epubcheck/test/css/font_encryption_idpf_expected_results.xml @@ -1,10 +1,10 @@ - + xsi:schemaLocation="http://schema.openpreservation.org/ois/xml/ns/jhove https://schema.openpreservation.org/ois/xml/xsd/jhove/jhove.xsd"> 2019-03-16T02:28:44+01:00 2019-03-16T02:26:38Z @@ -13,60 +13,60 @@ 3.2 Well-formed - OPF-090, HINT, [It is encouraged to use MIME media type 'font/woff' instead of 'application/font-woff'. ], Css-fontface/package.opf (19-119) - OPF-090, HINT, [It is encouraged to use MIME media type 'font/woff' instead of 'application/font-woff'. ], Css-fontface/package.opf (20-117) - OPF-090, HINT, [It is encouraged to use MIME media type 'font/woff' instead of 'application/font-woff'. ], Css-fontface/package.opf (21-113) - OPF-090, HINT, [It is encouraged to use MIME media type 'font/woff' instead of 'application/font-woff'. ], Css-fontface/package.opf (31-116) - OPF-090, HINT, [It is encouraged to use MIME media type 'font/woff' instead of 'application/font-woff'. ], Css-fontface/package.opf (32-114) - OPF-090, HINT, [It is encouraged to use MIME media type 'font/woff' instead of 'application/font-woff'. ], Css-fontface/package.opf (33-110) - OPF-090, HINT, [It is encouraged to use MIME media type 'font/otf' instead of 'application/vnd.ms-opentype'. ], Css-fontface/package.opf (23-121) - OPF-090, HINT, [It is encouraged to use MIME media type 'font/otf' instead of 'application/vnd.ms-opentype'. ], Css-fontface/package.opf (24-119) - OPF-090, HINT, [It is encouraged to use MIME media type 'font/otf' instead of 'application/vnd.ms-opentype'. ], Css-fontface/package.opf (25-115) - OPF-090, HINT, [It is encouraged to use MIME media type 'font/otf' instead of 'application/vnd.ms-opentype'. ], Css-fontface/package.opf (27-125) - OPF-090, HINT, [It is encouraged to use MIME media type 'font/otf' instead of 'application/vnd.ms-opentype'. ], Css-fontface/package.opf (28-123) - OPF-090, HINT, [It is encouraged to use MIME media type 'font/otf' instead of 'application/vnd.ms-opentype'. ], Css-fontface/package.opf (29-119) - CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (2-5) - CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (3-5) - CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (4-5) - CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (5-5) - CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (9-5) - CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (10-5) - CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (11-5) - CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (12-5) - CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (16-5) - CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (17-5) - CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (18-5) - CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (19-5) - CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (23-5) - CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (24-5) - CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (25-5) - CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (26-5) - CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (30-5) - CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (31-5) - CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (32-5) - CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (33-5) - CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (37-5) - CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (38-5) - CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (39-5) - CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (40-5) - CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (43-5) - CSS-028, HINT, [Use of Font-face declaration.], There are 23 additional locations for this message. - ACC-008, HINT, [Navigation Document has no 'landmarks nav' element.], Css-fontface/pages/toc.xhtml - ACC-013, HINT, [Content file contains at least one inline style declaration.], Css-fontface/pages/pg1.xhtml (11-51) - ACC-013, HINT, [Content file contains at least one inline style declaration.], Css-fontface/pages/pg1.xhtml (15-52) - ACC-013, HINT, [Content file contains at least one inline style declaration.], Css-fontface/pages/pg1.xhtml (19-55) - ACC-013, HINT, [Content file contains at least one inline style declaration.], Css-fontface/pages/pg1.xhtml (23-56) - ACC-013, HINT, [Content file contains at least one inline style declaration.], Css-fontface/pages/pg1.xhtml (33-44) - ACC-013, HINT, [Content file contains at least one inline style declaration.], Css-fontface/pages/pg2.xhtml (11-68) - ACC-013, HINT, [Content file contains at least one inline style declaration.], Css-fontface/pages/pg2.xhtml (15-69) - ACC-013, HINT, [Content file contains at least one inline style declaration.], Css-fontface/pages/pg2.xhtml (19-72) - ACC-013, HINT, [Content file contains at least one inline style declaration.], Css-fontface/pages/pg2.xhtml (23-73) - ACC-013, HINT, [Content file contains at least one inline style declaration.], Css-fontface/pages/pg2.xhtml (35-61) - ACC-013, HINT, [Content file contains at least one inline style declaration.], Css-fontface/pages/pg3.xhtml (11-69) - ACC-013, HINT, [Content file contains at least one inline style declaration.], Css-fontface/pages/pg3.xhtml (15-70) - ACC-013, HINT, [Content file contains at least one inline style declaration.], Css-fontface/pages/pg3.xhtml (19-73) - ACC-013, HINT, [Content file contains at least one inline style declaration.], Css-fontface/pages/pg3.xhtml (23-74) - ACC-013, HINT, [Content file contains at least one inline style declaration.], Css-fontface/pages/pg3.xhtml (35-62) + OPF-090, HINT, [It is encouraged to use MIME media type 'font/woff' instead of 'application/font-woff'. ], Css-fontface/package.opf (19-119) + OPF-090, HINT, [It is encouraged to use MIME media type 'font/woff' instead of 'application/font-woff'. ], Css-fontface/package.opf (20-117) + OPF-090, HINT, [It is encouraged to use MIME media type 'font/woff' instead of 'application/font-woff'. ], Css-fontface/package.opf (21-113) + OPF-090, HINT, [It is encouraged to use MIME media type 'font/woff' instead of 'application/font-woff'. ], Css-fontface/package.opf (31-116) + OPF-090, HINT, [It is encouraged to use MIME media type 'font/woff' instead of 'application/font-woff'. ], Css-fontface/package.opf (32-114) + OPF-090, HINT, [It is encouraged to use MIME media type 'font/woff' instead of 'application/font-woff'. ], Css-fontface/package.opf (33-110) + OPF-090, HINT, [It is encouraged to use MIME media type 'font/otf' instead of 'application/vnd.ms-opentype'. ], Css-fontface/package.opf (23-121) + OPF-090, HINT, [It is encouraged to use MIME media type 'font/otf' instead of 'application/vnd.ms-opentype'. ], Css-fontface/package.opf (24-119) + OPF-090, HINT, [It is encouraged to use MIME media type 'font/otf' instead of 'application/vnd.ms-opentype'. ], Css-fontface/package.opf (25-115) + OPF-090, HINT, [It is encouraged to use MIME media type 'font/otf' instead of 'application/vnd.ms-opentype'. ], Css-fontface/package.opf (27-125) + OPF-090, HINT, [It is encouraged to use MIME media type 'font/otf' instead of 'application/vnd.ms-opentype'. ], Css-fontface/package.opf (28-123) + OPF-090, HINT, [It is encouraged to use MIME media type 'font/otf' instead of 'application/vnd.ms-opentype'. ], Css-fontface/package.opf (29-119) + CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (2-5) + CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (3-5) + CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (4-5) + CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (5-5) + CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (9-5) + CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (10-5) + CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (11-5) + CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (12-5) + CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (16-5) + CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (17-5) + CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (18-5) + CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (19-5) + CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (23-5) + CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (24-5) + CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (25-5) + CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (26-5) + CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (30-5) + CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (31-5) + CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (32-5) + CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (33-5) + CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (37-5) + CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (38-5) + CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (39-5) + CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (40-5) + CSS-028, HINT, [Use of Font-face declaration.], Css-fontface/css/fonts.css (43-5) + CSS-028, HINT, [Use of Font-face declaration.], There are 23 additional locations for this message. + ACC-008, HINT, [Navigation Document has no 'landmarks nav' element.], Css-fontface/pages/toc.xhtml + ACC-013, HINT, [Content file contains at least one inline style declaration.], Css-fontface/pages/pg1.xhtml (11-51) + ACC-013, HINT, [Content file contains at least one inline style declaration.], Css-fontface/pages/pg1.xhtml (15-52) + ACC-013, HINT, [Content file contains at least one inline style declaration.], Css-fontface/pages/pg1.xhtml (19-55) + ACC-013, HINT, [Content file contains at least one inline style declaration.], Css-fontface/pages/pg1.xhtml (23-56) + ACC-013, HINT, [Content file contains at least one inline style declaration.], Css-fontface/pages/pg1.xhtml (33-44) + ACC-013, HINT, [Content file contains at least one inline style declaration.], Css-fontface/pages/pg2.xhtml (11-68) + ACC-013, HINT, [Content file contains at least one inline style declaration.], Css-fontface/pages/pg2.xhtml (15-69) + ACC-013, HINT, [Content file contains at least one inline style declaration.], Css-fontface/pages/pg2.xhtml (19-72) + ACC-013, HINT, [Content file contains at least one inline style declaration.], Css-fontface/pages/pg2.xhtml (23-73) + ACC-013, HINT, [Content file contains at least one inline style declaration.], Css-fontface/pages/pg2.xhtml (35-61) + ACC-013, HINT, [Content file contains at least one inline style declaration.], Css-fontface/pages/pg3.xhtml (11-69) + ACC-013, HINT, [Content file contains at least one inline style declaration.], Css-fontface/pages/pg3.xhtml (15-70) + ACC-013, HINT, [Content file contains at least one inline style declaration.], Css-fontface/pages/pg3.xhtml (19-73) + ACC-013, HINT, [Content file contains at least one inline style declaration.], Css-fontface/pages/pg3.xhtml (23-74) + ACC-013, HINT, [Content file contains at least one inline style declaration.], Css-fontface/pages/pg3.xhtml (35-62) application/epub+zip diff --git a/src/test/resources/com/adobe/epubcheck/test/encryption/epub20_encryption_binary_content.epub_expected_results.xml b/src/test/resources/com/adobe/epubcheck/test/encryption/epub20_encryption_binary_content.epub_expected_results.xml index 83ba8e107..45069ecd3 100644 --- a/src/test/resources/com/adobe/epubcheck/test/encryption/epub20_encryption_binary_content.epub_expected_results.xml +++ b/src/test/resources/com/adobe/epubcheck/test/encryption/epub20_encryption_binary_content.epub_expected_results.xml @@ -1,10 +1,10 @@ - + xsi:schemaLocation="http://schema.openpreservation.org/ois/xml/ns/jhove https://schema.openpreservation.org/ois/xml/xsd/jhove/jhove.xsd"> 2019-01-21T09:52:50+01:00 2015-06-02T16:34:06Z @@ -12,11 +12,11 @@ 2.0.1 Not well-formed - RSC-012, ERROR, [Fragment identifier is not defined.], OEBPS/toc.ncx (24-67) - RSC-012, ERROR, [Fragment identifier is not defined.], OEBPS/toc.ncx (30-82) - RSC-012, ERROR, [Fragment identifier is not defined.], OEBPS/toc.ncx (36-81) - RSC-012, ERROR, [Fragment identifier is not defined.], OEBPS/toc.ncx (42-75) - RSC-012, ERROR, [Fragment identifier is not defined.], OEBPS/toc.ncx (48-61) + RSC-012, ERROR, [Fragment identifier is not defined.], OEBPS/toc.ncx (24-67) + RSC-012, ERROR, [Fragment identifier is not defined.], OEBPS/toc.ncx (30-82) + RSC-012, ERROR, [Fragment identifier is not defined.], OEBPS/toc.ncx (36-81) + RSC-012, ERROR, [Fragment identifier is not defined.], OEBPS/toc.ncx (42-75) + RSC-012, ERROR, [Fragment identifier is not defined.], OEBPS/toc.ncx (48-61) application/epub+zip diff --git a/src/test/resources/com/adobe/epubcheck/test/encryption/epub20_minimal_encryption.epub_expected_results.xml b/src/test/resources/com/adobe/epubcheck/test/encryption/epub20_minimal_encryption.epub_expected_results.xml index e51c1f0e3..b11483ef2 100644 --- a/src/test/resources/com/adobe/epubcheck/test/encryption/epub20_minimal_encryption.epub_expected_results.xml +++ b/src/test/resources/com/adobe/epubcheck/test/encryption/epub20_minimal_encryption.epub_expected_results.xml @@ -1,10 +1,10 @@ - + xsi:schemaLocation="http://schema.openpreservation.org/ois/xml/ns/jhove https://schema.openpreservation.org/ois/xml/xsd/jhove/jhove.xsd"> 2017-01-02T18:40:30+01:00 2015-03-03T17:12:58Z @@ -12,11 +12,11 @@ 2.0.1 Not well-formed - RSC-012, ERROR, [Fragment identifier is not defined.], OEBPS/toc.ncx (24-67) - RSC-012, ERROR, [Fragment identifier is not defined.], OEBPS/toc.ncx (30-82) - RSC-012, ERROR, [Fragment identifier is not defined.], OEBPS/toc.ncx (36-81) - RSC-012, ERROR, [Fragment identifier is not defined.], OEBPS/toc.ncx (42-75) - RSC-012, ERROR, [Fragment identifier is not defined.], OEBPS/toc.ncx (48-61) + RSC-012, ERROR, [Fragment identifier is not defined.], OEBPS/toc.ncx (24-67) + RSC-012, ERROR, [Fragment identifier is not defined.], OEBPS/toc.ncx (30-82) + RSC-012, ERROR, [Fragment identifier is not defined.], OEBPS/toc.ncx (36-81) + RSC-012, ERROR, [Fragment identifier is not defined.], OEBPS/toc.ncx (42-75) + RSC-012, ERROR, [Fragment identifier is not defined.], OEBPS/toc.ncx (48-61) application/epub+zip diff --git a/src/test/resources/com/adobe/epubcheck/test/encryption/epub30_font_obfuscation.epub_expected_results.xml b/src/test/resources/com/adobe/epubcheck/test/encryption/epub30_font_obfuscation.epub_expected_results.xml index e7eed8744..109bdde6c 100644 --- a/src/test/resources/com/adobe/epubcheck/test/encryption/epub30_font_obfuscation.epub_expected_results.xml +++ b/src/test/resources/com/adobe/epubcheck/test/encryption/epub30_font_obfuscation.epub_expected_results.xml @@ -1,10 +1,10 @@ - + xsi:schemaLocation="http://schema.openpreservation.org/ois/xml/ns/jhove https://schema.openpreservation.org/ois/xml/xsd/jhove/jhove.xsd"> 2017-01-02T18:40:30+01:00 2012-01-08T21:51:18Z diff --git a/src/test/resources/com/adobe/epubcheck/test/opf/Epub2_marked_v3_expected_results.xml b/src/test/resources/com/adobe/epubcheck/test/opf/Epub2_marked_v3_expected_results.xml index bbf542623..51ed45a77 100644 --- a/src/test/resources/com/adobe/epubcheck/test/opf/Epub2_marked_v3_expected_results.xml +++ b/src/test/resources/com/adobe/epubcheck/test/opf/Epub2_marked_v3_expected_results.xml @@ -1,10 +1,10 @@ - + xsi:schemaLocation="http://schema.openpreservation.org/ois/xml/ns/jhove https://schema.openpreservation.org/ois/xml/xsd/jhove/jhove.xsd"> 2019-02-05T22:24:42+01:00 2019-02-05T15:38:16Z @@ -12,10 +12,10 @@ 3.0.1 Not well-formed - RSC-005, ERROR, [Error while parsing file: package dcterms:modified meta element must occur exactly once], OPS/content.opf (3-57) - RSC-005, ERROR, [Error while parsing file: Exactly one manifest item must declare the 'nav' property (number of 'nav' items: 0).], OPS/content.opf (8-13) - HTM-004, ERROR, [Irregular DOCTYPE: found '-//W3C//DTD XHTML 1.1//EN', expected '<!DOCTYPE html>'.], OPS/page01.xhtml - HTM-010, HINT, [Namespace uri 'http://www.daisy.org/z3986/2005/ncx/' was found.], OPS/toc.ncx (2-68) + RSC-005, ERROR, [Error while parsing file: package dcterms:modified meta element must occur exactly once], OPS/content.opf (3-57) + RSC-005, ERROR, [Error while parsing file: Exactly one manifest item must declare the 'nav' property (number of 'nav' items: 0).], OPS/content.opf (8-13) + HTM-004, ERROR, [Irregular DOCTYPE: found '-//W3C//DTD XHTML 1.1//EN', expected '<!DOCTYPE html>'.], OPS/page01.xhtml + HTM-010, HINT, [Namespace uri 'http://www.daisy.org/z3986/2005/ncx/' was found.], OPS/toc.ncx (2-68) application/epub+zip diff --git a/src/test/resources/com/adobe/epubcheck/test/opf/Epub3_marked_v2_expected_results.xml b/src/test/resources/com/adobe/epubcheck/test/opf/Epub3_marked_v2_expected_results.xml index e1e511872..b131dfedc 100644 --- a/src/test/resources/com/adobe/epubcheck/test/opf/Epub3_marked_v2_expected_results.xml +++ b/src/test/resources/com/adobe/epubcheck/test/opf/Epub3_marked_v2_expected_results.xml @@ -1,10 +1,10 @@ - + xsi:schemaLocation="http://schema.openpreservation.org/ois/xml/ns/jhove https://schema.openpreservation.org/ois/xml/xsd/jhove/jhove.xsd"> 2017-01-02T18:40:31+01:00 2017-01-02T18:34:14Z @@ -13,16 +13,16 @@ 2.0.1 Not well-formed - RSC-005, ERROR, [Error while parsing file: attribute "property" not allowed here; expected attribute "content", "id", "name", "scheme" or "xml:lang"], OPS/content.opf (7-39) - RSC-005, ERROR, [Error while parsing file: element "meta" missing required attributes "content" and "name"], OPS/content.opf (7-39) - RSC-005, ERROR, [Error while parsing file: text not allowed here; expected the element end-tag], OPS/content.opf (7-61) - RSC-005, ERROR, [Error while parsing file: attribute "properties" not allowed here; expected attribute "fallback", "fallback-style", "href", "media-type", "required-modules" or "required-namespace"], OPS/content.opf (12-90) - HTM-004, ERROR, [Irregular DOCTYPE: found '', expected '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" + RSC-005, ERROR, [Error while parsing file: attribute "property" not allowed here; expected attribute "content", "id", "name", "scheme" or "xml:lang"], OPS/content.opf (7-39) + RSC-005, ERROR, [Error while parsing file: element "meta" missing required attributes "content" and "name"], OPS/content.opf (7-39) + RSC-005, ERROR, [Error while parsing file: text not allowed here; expected the element end-tag], OPS/content.opf (7-61) + RSC-005, ERROR, [Error while parsing file: attribute "properties" not allowed here; expected attribute "fallback", "fallback-style", "href", "media-type", "required-modules" or "required-namespace"], OPS/content.opf (12-90) + HTM-004, ERROR, [Irregular DOCTYPE: found '', expected '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'.], OPS/toc.xhtml - RSC-005, ERROR, [Error while parsing file: element "nav" not allowed anywhere; expected 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")], OPS/toc.xhtml (9-22) - RSC-005, ERROR, [Error while parsing file: element "nav" not allowed anywhere; expected 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")], OPS/toc.xhtml (12-10) - RSC-005, ERROR, [Error while parsing file: element "body" incomplete; expected 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")], OPS/toc.xhtml (14-8) - HTM-010, HINT, [Namespace uri 'http://www.daisy.org/z3986/2005/ncx/' was found.], OPS/toc.ncx (2-68) + RSC-005, ERROR, [Error while parsing file: element "nav" not allowed anywhere; expected 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")], OPS/toc.xhtml (9-22) + RSC-005, ERROR, [Error while parsing file: element "nav" not allowed anywhere; expected 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")], OPS/toc.xhtml (12-10) + RSC-005, ERROR, [Error while parsing file: element "body" incomplete; expected 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")], OPS/toc.xhtml (14-8) + HTM-010, HINT, [Namespace uri 'http://www.daisy.org/z3986/2005/ncx/' was found.], OPS/toc.ncx (2-68) application/epub+zip diff --git a/src/test/resources/com/adobe/epubcheck/test/opf/Missing_Spine_epub3_expected_results.xml b/src/test/resources/com/adobe/epubcheck/test/opf/Missing_Spine_epub3_expected_results.xml index 2d644fd6f..d002d56e9 100644 --- a/src/test/resources/com/adobe/epubcheck/test/opf/Missing_Spine_epub3_expected_results.xml +++ b/src/test/resources/com/adobe/epubcheck/test/opf/Missing_Spine_epub3_expected_results.xml @@ -1,10 +1,10 @@ - + xsi:schemaLocation="http://schema.openpreservation.org/ois/xml/ns/jhove https://schema.openpreservation.org/ois/xml/xsd/jhove/jhove.xsd"> 2019-02-05T22:24:42+01:00 2019-02-05T15:38:16Z @@ -13,10 +13,10 @@ 3.0.1 Not well-formed - OPF-019, FATAL, [Spine tag was not found in the OPF file.], OPS/content.opf - RSC-005, ERROR, [Error while parsing file: element "package" incomplete; missing required element "spine"], OPS/content.opf (13-11) - RSC-011, ERROR, [Found a reference to a resource that is not a spine item.], OPS/toc.xhtml (11-36) - ACC-008, HINT, [Navigation Document has no 'landmarks nav' element.], OPS/toc.xhtml + OPF-019, FATAL, [Spine tag was not found in the OPF file.], OPS/content.opf + RSC-005, ERROR, [Error while parsing file: element "package" incomplete; missing required element "spine"], OPS/content.opf (13-11) + RSC-011, ERROR, [Found a reference to a resource that is not a spine item.], OPS/toc.xhtml (11-36) + ACC-008, HINT, [Navigation Document has no 'landmarks nav' element.], OPS/toc.xhtml application/epub+zip diff --git a/src/test/resources/com/adobe/epubcheck/test/opf/Publication_Metadata_epub3_expected_results.xml b/src/test/resources/com/adobe/epubcheck/test/opf/Publication_Metadata_epub3_expected_results.xml index 946aaa96d..f2de3d4ec 100644 --- a/src/test/resources/com/adobe/epubcheck/test/opf/Publication_Metadata_epub3_expected_results.xml +++ b/src/test/resources/com/adobe/epubcheck/test/opf/Publication_Metadata_epub3_expected_results.xml @@ -1,10 +1,10 @@ - + xsi:schemaLocation="http://schema.openpreservation.org/ois/xml/ns/jhove https://schema.openpreservation.org/ois/xml/xsd/jhove/jhove.xsd"> 2019-02-05T22:24:45+01:00 2019-02-05T15:38:16Z @@ -13,8 +13,8 @@ 3.0.1 Well-formed - ACC-008, HINT, [Navigation Document has no 'landmarks nav' element.], OPS/toc.xhtml - HTM-010, HINT, [Namespace uri 'http://www.daisy.org/z3986/2005/ncx/' was found.], OPS/toc.ncx (2-68) + ACC-008, HINT, [Navigation Document has no 'landmarks nav' element.], OPS/toc.xhtml + HTM-010, HINT, [Namespace uri 'http://www.daisy.org/z3986/2005/ncx/' was found.], OPS/toc.ncx (2-68) application/epub+zip diff --git a/src/test/resources/com/adobe/epubcheck/test/package/interesting_paths_epub2_expected_results.xml b/src/test/resources/com/adobe/epubcheck/test/package/interesting_paths_epub2_expected_results.xml index df273508e..a46ecce3f 100644 --- a/src/test/resources/com/adobe/epubcheck/test/package/interesting_paths_epub2_expected_results.xml +++ b/src/test/resources/com/adobe/epubcheck/test/package/interesting_paths_epub2_expected_results.xml @@ -1,10 +1,10 @@ - + xsi:schemaLocation="http://schema.openpreservation.org/ois/xml/ns/jhove https://schema.openpreservation.org/ois/xml/xsd/jhove/jhove.xsd"> 2017-01-02T18:40:35+01:00 2017-01-02T18:34:16Z @@ -12,11 +12,11 @@ 2.0.1 Well-formed - PKG-010, WARN, [Filename contains spaces, therefore URI escaping is necessary. Consider removing spaces from filename.], OPS Content/More XHTML Content/page01.xhtml - PKG-010, WARN, [Filename contains spaces, therefore URI escaping is necessary. Consider removing spaces from filename.], OPS Content/content.opf - PKG-010, WARN, [Filename contains spaces, therefore URI escaping is necessary. Consider removing spaces from filename.], OPS Content/toc.ncx - PKG-010, WARN, [Filename contains spaces, therefore URI escaping is necessary. Consider removing spaces from filename.], XHTML Content/page02.xhtml - HTM-010, HINT, [Namespace uri 'http://www.daisy.org/z3986/2005/ncx/' was found.], OPS Content/toc.ncx (2-68) + PKG-010, WARN, [Filename contains spaces, therefore URI escaping is necessary. Consider removing spaces from filename.], OPS Content/More XHTML Content/page01.xhtml + PKG-010, WARN, [Filename contains spaces, therefore URI escaping is necessary. Consider removing spaces from filename.], OPS Content/content.opf + PKG-010, WARN, [Filename contains spaces, therefore URI escaping is necessary. Consider removing spaces from filename.], OPS Content/toc.ncx + PKG-010, WARN, [Filename contains spaces, therefore URI escaping is necessary. Consider removing spaces from filename.], XHTML Content/page02.xhtml + HTM-010, HINT, [Namespace uri 'http://www.daisy.org/z3986/2005/ncx/' was found.], OPS Content/toc.ncx (2-68) application/epub+zip diff --git a/src/test/resources/com/adobe/epubcheck/test/package/interesting_paths_epub3_expected_results.xml b/src/test/resources/com/adobe/epubcheck/test/package/interesting_paths_epub3_expected_results.xml index 319c59691..a573581cf 100644 --- a/src/test/resources/com/adobe/epubcheck/test/package/interesting_paths_epub3_expected_results.xml +++ b/src/test/resources/com/adobe/epubcheck/test/package/interesting_paths_epub3_expected_results.xml @@ -1,10 +1,10 @@ - + xsi:schemaLocation="http://schema.openpreservation.org/ois/xml/ns/jhove https://schema.openpreservation.org/ois/xml/xsd/jhove/jhove.xsd"> 2019-02-05T15:52:54+01:00 2019-02-05T15:38:16Z @@ -13,20 +13,20 @@ 3.0.1 Not well-formed - RSC-001, ERROR, [File 'OPS Content/style.' could not be found.], interesting_paths_epub3.epub - RSC-007, ERROR, [Referenced resource 'style.' could not be found in the EPUB.], OPS Content/Cyrillic_Ф.xhtml (6-62) - RSC-007, ERROR, [Referenced resource '../XHTML Content/page 02.xhtml' could not be found in the EPUB.], OPS Content/Cyrillic_Ф.xhtml (13-53) - PKG-009, ERROR, [File name contains characters that are not allowed in OCF file names: '"{","}"'.], OPS Content/page{03}.xhtml - PKG-012, HINT, [File name contains the following non-ascii characters: Ф. Consider changing the filename.], OPS Content/Cyrillic_Ф.xhtml - PKG-010, WARN, [Filename contains spaces, therefore URI escaping is necessary. Consider removing spaces from filename.], OPS Content/Cyrillic_Ф.xhtml - PKG-010, WARN, [Filename contains spaces, therefore URI escaping is necessary. Consider removing spaces from filename.], OPS Content/More XHTML Content/page01.xhtml - PKG-010, WARN, [Filename contains spaces, therefore URI escaping is necessary. Consider removing spaces from filename.], OPS Content/content.opf - PKG-010, WARN, [Filename contains spaces, therefore URI escaping is necessary. Consider removing spaces from filename.], OPS Content/page{03}.xhtml - PKG-010, WARN, [Filename contains spaces, therefore URI escaping is necessary. Consider removing spaces from filename.], OPS Content/toc.ncx - PKG-010, WARN, [Filename contains spaces, therefore URI escaping is necessary. Consider removing spaces from filename.], OPS Content/toc.xhtml - PKG-010, WARN, [Filename contains spaces, therefore URI escaping is necessary. Consider removing spaces from filename.], XHTML Content/page 02.xhtml - ACC-008, HINT, [Navigation Document has no 'landmarks nav' element.], OPS Content/toc.xhtml - HTM-010, HINT, [Namespace uri 'http://www.daisy.org/z3986/2005/ncx/' was found.], OPS Content/toc.ncx (2-68) + RSC-001, ERROR, [File "OPS Content/style." could not be found.], interesting_paths_epub3.epub + RSC-007, ERROR, [Referenced resource "style." could not be found in the EPUB.], OPS Content/Cyrillic_Ф.xhtml (6-62) + RSC-007, ERROR, [Referenced resource "../XHTML Content/page 02.xhtml" could not be found in the EPUB.], OPS Content/Cyrillic_Ф.xhtml (13-53) + PKG-009, ERROR, [File name contains characters that are not allowed in OCF file names: ""{","}"".], OPS Content/page{03}.xhtml + PKG-010, WARN, [Filename contains spaces, therefore URI escaping is necessary. Consider removing spaces from filename.], OPS Content/Cyrillic_Ф.xhtml + PKG-010, WARN, [Filename contains spaces, therefore URI escaping is necessary. Consider removing spaces from filename.], OPS Content/More XHTML Content/page01.xhtml + PKG-010, WARN, [Filename contains spaces, therefore URI escaping is necessary. Consider removing spaces from filename.], OPS Content/content.opf + PKG-010, WARN, [Filename contains spaces, therefore URI escaping is necessary. Consider removing spaces from filename.], OPS Content/page{03}.xhtml + PKG-010, WARN, [Filename contains spaces, therefore URI escaping is necessary. Consider removing spaces from filename.], OPS Content/toc.ncx + PKG-010, WARN, [Filename contains spaces, therefore URI escaping is necessary. Consider removing spaces from filename.], OPS Content/toc.xhtml + PKG-010, WARN, [Filename contains spaces, therefore URI escaping is necessary. Consider removing spaces from filename.], XHTML Content/page 02.xhtml + PKG-012, HINT, [File name contains the following non-ascii characters: Ф. Consider changing the filename.], OPS Content/Cyrillic_Ф.xhtml + ACC-008, HINT, [Navigation Document has no "landmarks nav" element.], OPS Content/toc.xhtml + HTM-010, HINT, [Namespace uri "http://www.daisy.org/z3986/2005/ncx/" was found.], OPS Content/toc.ncx (2-68) application/epub+zip