{
  "customMessageFileName" : null,
  "checker" : {
    "path" : "./target/test-classes/com/adobe/epubcheck/test/opf/Media-type_handler.epub",
    "filename" : "Media-type_handler.epub",
    "checkerVersion" : "4.0.0-alpha12-SNAPSHOT",
    "checkDate" : "03-25-2015 10:06:15",
    "elapsedTime" : 313,
    "nFatal" : 0,
    "nError" : 5,
    "nWarning" : 0,
    "nUsage" : 5
  },
  "publication" : {
    "publisher" : null,
    "title" : "Missing TOC Sample Book",
    "creator" : [ ],
    "date" : "2012-10-10T12:00:00Z",
    "subject" : [ ],
    "description" : null,
    "rights" : null,
    "identifier" : "000000000000000000",
    "language" : "en",
    "nSpines" : 1,
    "checkSum" : 0,
    "renditionLayout" : "reflowable",
    "renditionOrientation" : "auto",
    "renditionSpread" : "auto",
    "ePubVersion" : "3.0.1",
    "isScripted" : true,
    "hasFixedFormat" : false,
    "isBackwardCompatible" : false,
    "hasAudio" : false,
    "hasVideo" : false,
    "charsCount" : 1787,
    "embeddedFonts" : [ ],
    "refFonts" : [ ],
    "hasEncryption" : false,
    "hasSignatures" : false,
    "contributors" : [ ]
  },
  "items" : [ {
    "id" : "dupe",
    "fileName" : "OPS/duplicate.xhtml",
    "media_type" : "application/xhtml+xml",
    "compressedSize" : 252,
    "uncompressedSize" : 368,
    "compressionMethod" : "Deflated",
    "checkSum" : "6b7426873e7edb3fd6c1c49e5684888e5d9fde33fddc4fa5d56674672de9",
    "isSpineItem" : false,
    "spineIndex" : null,
    "isLinear" : false,
    "navigationOrder" : null,
    "isHTML5" : false,
    "isFixedFormat" : null,
    "isScripted" : true,
    "scriptSrc" : false,
    "scriptTag" : true,
    "scriptInline" : false,
    "renditionLayout" : null,
    "renditionOrientation" : null,
    "renditionSpread" : null,
    "referencedItems" : [ ]
  }, {
    "id" : "ePubCheck.NoManifestRef:META-INF/container.xml",
    "fileName" : "META-INF/container.xml",
    "media_type" : null,
    "compressedSize" : 172,
    "uncompressedSize" : 254,
    "compressionMethod" : "Deflated",
    "checkSum" : "61c34690751e24ea0ac4a46f02063b015d4442763ccdfb5474b928e5b662b2",
    "isSpineItem" : false,
    "spineIndex" : null,
    "isLinear" : false,
    "navigationOrder" : null,
    "isHTML5" : false,
    "isFixedFormat" : null,
    "isScripted" : false,
    "scriptSrc" : false,
    "scriptTag" : false,
    "scriptInline" : false,
    "renditionLayout" : null,
    "renditionOrientation" : null,
    "renditionSpread" : null,
    "referencedItems" : [ ]
  }, {
    "id" : "ePubCheck.NoManifestRef:OPS/content.opf",
    "fileName" : "OPS/content.opf",
    "media_type" : null,
    "compressedSize" : 601,
    "uncompressedSize" : 2094,
    "compressionMethod" : "Deflated",
    "checkSum" : "f556d8161cbee2f66ce3bcdc19f3f6cbba8beb99da493d45f7a8e39fa4f34e",
    "isSpineItem" : false,
    "spineIndex" : null,
    "isLinear" : false,
    "navigationOrder" : null,
    "isHTML5" : false,
    "isFixedFormat" : null,
    "isScripted" : false,
    "scriptSrc" : false,
    "scriptTag" : false,
    "scriptInline" : false,
    "renditionLayout" : null,
    "renditionOrientation" : null,
    "renditionSpread" : null,
    "referencedItems" : [ ]
  }, {
    "id" : "ePubCheck.NoManifestRef:mimetype",
    "fileName" : "mimetype",
    "media_type" : null,
    "compressedSize" : 20,
    "uncompressedSize" : 20,
    "compressionMethod" : "Stored",
    "checkSum" : "e468e350d1143eb648f6c7bbd63111ec544a361ca74ecef256ac91f48b",
    "isSpineItem" : false,
    "spineIndex" : null,
    "isLinear" : false,
    "navigationOrder" : null,
    "isHTML5" : false,
    "isFixedFormat" : null,
    "isScripted" : false,
    "scriptSrc" : false,
    "scriptTag" : false,
    "scriptInline" : false,
    "renditionLayout" : null,
    "renditionOrientation" : null,
    "renditionSpread" : null,
    "referencedItems" : [ ]
  }, {
    "id" : "ncx",
    "fileName" : "OPS/toc.ncx",
    "media_type" : "application/x-dtbncx+xml",
    "compressedSize" : 293,
    "uncompressedSize" : 556,
    "compressionMethod" : "Deflated",
    "checkSum" : "7e983f3695b1eea13cb6d3e7aacb5d84de767f2ccda456f5154d35c5f9b012",
    "isSpineItem" : false,
    "spineIndex" : null,
    "isLinear" : false,
    "navigationOrder" : null,
    "isHTML5" : false,
    "isFixedFormat" : null,
    "isScripted" : false,
    "scriptSrc" : false,
    "scriptTag" : false,
    "scriptInline" : false,
    "renditionLayout" : null,
    "renditionOrientation" : null,
    "renditionSpread" : null,
    "referencedItems" : [ "OPS/page01.xhtml" ]
  }, {
    "id" : "not_scripted",
    "fileName" : "OPS/impl2.xhtml",
    "media_type" : "application/xhtml+xml",
    "compressedSize" : 163,
    "uncompressedSize" : 222,
    "compressionMethod" : "Deflated",
    "checkSum" : "6b39c022c0c8555a8a6acef3991eefbcef1707d951dbbf75a4108abbbceab",
    "isSpineItem" : false,
    "spineIndex" : null,
    "isLinear" : false,
    "navigationOrder" : null,
    "isHTML5" : false,
    "isFixedFormat" : null,
    "isScripted" : false,
    "scriptSrc" : false,
    "scriptTag" : false,
    "scriptInline" : false,
    "renditionLayout" : null,
    "renditionOrientation" : null,
    "renditionSpread" : null,
    "referencedItems" : [ ]
  }, {
    "id" : "page01",
    "fileName" : "OPS/page01.xhtml",
    "media_type" : "application/xhtml+xml",
    "compressedSize" : 327,
    "uncompressedSize" : 711,
    "compressionMethod" : "Deflated",
    "checkSum" : "c0de32e88c90fc77cc3fc952bb551adad46ab85030661420a71aa52fe69ffd",
    "isSpineItem" : true,
    "spineIndex" : 0,
    "isLinear" : true,
    "navigationOrder" : 1,
    "isHTML5" : false,
    "isFixedFormat" : false,
    "isScripted" : false,
    "scriptSrc" : false,
    "scriptTag" : false,
    "scriptInline" : false,
    "renditionLayout" : "reflowable",
    "renditionOrientation" : "auto",
    "renditionSpread" : "auto",
    "referencedItems" : [ "OPS/images/image1.jpg", "OPS/images/image2.jpg", "OPS/images/image3.jpg", "OPS/images/image4.jpg", "OPS/settings.xml", "OPS/slideshow.xml" ]
  }, {
    "id" : "pict1",
    "fileName" : "OPS/images/image1.jpg",
    "media_type" : "image/jpeg",
    "compressedSize" : 8521,
    "uncompressedSize" : 20337,
    "compressionMethod" : "Deflated",
    "checkSum" : "2b32ce706c849b90805019fb8f142c8ee67d6adffea4902aeaba89127d3636",
    "isSpineItem" : false,
    "spineIndex" : null,
    "isLinear" : false,
    "navigationOrder" : null,
    "isHTML5" : false,
    "isFixedFormat" : null,
    "isScripted" : false,
    "scriptSrc" : false,
    "scriptTag" : false,
    "scriptInline" : false,
    "renditionLayout" : null,
    "renditionOrientation" : null,
    "renditionSpread" : null,
    "referencedItems" : [ ]
  }, {
    "id" : "pict2",
    "fileName" : "OPS/images/image2.jpg",
    "media_type" : "image/jpeg",
    "compressedSize" : 8521,
    "uncompressedSize" : 20337,
    "compressionMethod" : "Deflated",
    "checkSum" : "2b32ce706c849b90805019fb8f142c8ee67d6adffea4902aeaba89127d3636",
    "isSpineItem" : false,
    "spineIndex" : null,
    "isLinear" : false,
    "navigationOrder" : null,
    "isHTML5" : false,
    "isFixedFormat" : null,
    "isScripted" : false,
    "scriptSrc" : false,
    "scriptTag" : false,
    "scriptInline" : false,
    "renditionLayout" : null,
    "renditionOrientation" : null,
    "renditionSpread" : null,
    "referencedItems" : [ ]
  }, {
    "id" : "pict3",
    "fileName" : "OPS/images/image3.jpg",
    "media_type" : "image/jpeg",
    "compressedSize" : 8521,
    "uncompressedSize" : 20337,
    "compressionMethod" : "Deflated",
    "checkSum" : "2b32ce706c849b90805019fb8f142c8ee67d6adffea4902aeaba89127d3636",
    "isSpineItem" : false,
    "spineIndex" : null,
    "isLinear" : false,
    "navigationOrder" : null,
    "isHTML5" : false,
    "isFixedFormat" : null,
    "isScripted" : false,
    "scriptSrc" : false,
    "scriptTag" : false,
    "scriptInline" : false,
    "renditionLayout" : null,
    "renditionOrientation" : null,
    "renditionSpread" : null,
    "referencedItems" : [ ]
  }, {
    "id" : "pict4",
    "fileName" : "OPS/images/image4.jpg",
    "media_type" : "image/jpeg",
    "compressedSize" : 8521,
    "uncompressedSize" : 20337,
    "compressionMethod" : "Deflated",
    "checkSum" : "2b32ce706c849b90805019fb8f142c8ee67d6adffea4902aeaba89127d3636",
    "isSpineItem" : false,
    "spineIndex" : null,
    "isLinear" : false,
    "navigationOrder" : null,
    "isHTML5" : false,
    "isFixedFormat" : null,
    "isScripted" : false,
    "scriptSrc" : false,
    "scriptTag" : false,
    "scriptInline" : false,
    "renditionLayout" : null,
    "renditionOrientation" : null,
    "renditionSpread" : null,
    "referencedItems" : [ ]
  }, {
    "id" : "placeholderImage",
    "fileName" : "OPS/images/PlaceHolder.gif",
    "media_type" : "image/gif",
    "compressedSize" : 1885,
    "uncompressedSize" : 2065,
    "compressionMethod" : "Deflated",
    "checkSum" : "2abaa734135a298442e1786538beccae5516cd2e186103c7ea07aff1f714",
    "isSpineItem" : false,
    "spineIndex" : null,
    "isLinear" : false,
    "navigationOrder" : null,
    "isHTML5" : false,
    "isFixedFormat" : null,
    "isScripted" : false,
    "scriptSrc" : false,
    "scriptTag" : false,
    "scriptInline" : false,
    "renditionLayout" : null,
    "renditionOrientation" : null,
    "renditionSpread" : null,
    "referencedItems" : [ ]
  }, {
    "id" : "quiz",
    "fileName" : "OPS/quiz.xml",
    "media_type" : "application/x-demo-quiz",
    "compressedSize" : 90,
    "uncompressedSize" : 208,
    "compressionMethod" : "Deflated",
    "checkSum" : "cc484bec201bc622b7cf45f7b4111a429a9f234c422748c48f548feb1c3a084",
    "isSpineItem" : false,
    "spineIndex" : null,
    "isLinear" : false,
    "navigationOrder" : null,
    "isHTML5" : false,
    "isFixedFormat" : null,
    "isScripted" : false,
    "scriptSrc" : false,
    "scriptTag" : false,
    "scriptInline" : false,
    "renditionLayout" : null,
    "renditionOrientation" : null,
    "renditionSpread" : null,
    "referencedItems" : [ ]
  }, {
    "id" : "settings",
    "fileName" : "OPS/settings.xml",
    "media_type" : "application/x-demo-popup",
    "compressedSize" : 90,
    "uncompressedSize" : 208,
    "compressionMethod" : "Deflated",
    "checkSum" : "cc484bec201bc622b7cf45f7b4111a429a9f234c422748c48f548feb1c3a084",
    "isSpineItem" : false,
    "spineIndex" : null,
    "isLinear" : false,
    "navigationOrder" : null,
    "isHTML5" : false,
    "isFixedFormat" : null,
    "isScripted" : false,
    "scriptSrc" : false,
    "scriptTag" : false,
    "scriptInline" : false,
    "renditionLayout" : null,
    "renditionOrientation" : null,
    "renditionSpread" : null,
    "referencedItems" : [ ]
  }, {
    "id" : "slideshow",
    "fileName" : "OPS/slideshow.xml",
    "media_type" : "application/x-demo-slideshow",
    "compressedSize" : 90,
    "uncompressedSize" : 208,
    "compressionMethod" : "Deflated",
    "checkSum" : "cc484bec201bc622b7cf45f7b4111a429a9f234c422748c48f548feb1c3a084",
    "isSpineItem" : false,
    "spineIndex" : null,
    "isLinear" : false,
    "navigationOrder" : null,
    "isHTML5" : false,
    "isFixedFormat" : null,
    "isScripted" : false,
    "scriptSrc" : false,
    "scriptTag" : false,
    "scriptInline" : false,
    "renditionLayout" : null,
    "renditionOrientation" : null,
    "renditionSpread" : null,
    "referencedItems" : [ ]
  }, {
    "id" : "toc",
    "fileName" : "OPS/toc.xhtml",
    "media_type" : "application/xhtml+xml",
    "compressedSize" : 228,
    "uncompressedSize" : 339,
    "compressionMethod" : "Deflated",
    "checkSum" : "c1f5f92fde356c7bbbc841fce3f768289bf47019fdf46fc33b54273fa0f0cf4",
    "isSpineItem" : false,
    "spineIndex" : null,
    "isLinear" : false,
    "navigationOrder" : null,
    "isHTML5" : true,
    "isFixedFormat" : null,
    "isScripted" : false,
    "scriptSrc" : false,
    "scriptTag" : false,
    "scriptInline" : false,
    "renditionLayout" : null,
    "renditionOrientation" : null,
    "renditionSpread" : null,
    "referencedItems" : [ "OPS/page01.xhtml" ]
  }, {
    "id" : "valid",
    "fileName" : "OPS/impl.xhtml",
    "media_type" : "application/xhtml+xml",
    "compressedSize" : 687,
    "uncompressedSize" : 1667,
    "compressionMethod" : "Deflated",
    "checkSum" : "95a65263a5c598e919a7bce147699deda236cc688ff621b797be54cd512750",
    "isSpineItem" : false,
    "spineIndex" : null,
    "isLinear" : false,
    "navigationOrder" : null,
    "isHTML5" : false,
    "isFixedFormat" : null,
    "isScripted" : true,
    "scriptSrc" : false,
    "scriptTag" : true,
    "scriptInline" : false,
    "renditionLayout" : null,
    "renditionOrientation" : null,
    "renditionSpread" : null,
    "referencedItems" : [ "OPS/images/PlaceHolder.gif" ]
  } ],
  "messages" : [ {
    "ID" : "ACC-007",
    "severity" : "USAGE",
    "message" : "Content Documents do not use 'epub:type' attributes for semantic inflection.",
    "additionalLocations" : 0,
    "locations" : [ {
      "path" : "OPS/duplicate.xhtml",
      "line" : -1,
      "column" : -1,
      "context" : null
    }, {
      "path" : "OPS/impl.xhtml",
      "line" : -1,
      "column" : -1,
      "context" : null
    }, {
      "path" : "OPS/impl2.xhtml",
      "line" : -1,
      "column" : -1,
      "context" : null
    }, {
      "path" : "OPS/page01.xhtml",
      "line" : -1,
      "column" : -1,
      "context" : null
    } ],
    "suggestion" : null
  }, {
    "ID" : "ACC-008",
    "severity" : "USAGE",
    "message" : "Navigation Document has no 'landmarks nav' element.",
    "additionalLocations" : 0,
    "locations" : [ {
      "path" : "Media-type_handler.epub",
      "line" : -1,
      "column" : -1,
      "context" : null
    } ],
    "suggestion" : null
  }, {
    "ID" : "HTM-010",
    "severity" : "USAGE",
    "message" : "Namespace uri 'http://www.daisy.org/z3986/2005/ncx/' was found.",
    "additionalLocations" : 0,
    "locations" : [ {
      "path" : "OPS/toc.ncx",
      "line" : 2,
      "column" : 68,
      "context" : ""
    } ],
    "suggestion" : null
  }, {
    "ID" : "OPF-008",
    "severity" : "ERROR",
    "message" : "Handler binding for core Media-type 'image/jpeg' is not allowed.",
    "additionalLocations" : 0,
    "locations" : [ {
      "path" : "OPS/content.opf",
      "line" : 31,
      "column" : 57,
      "context" : null
    } ],
    "suggestion" : null
  }, {
    "ID" : "OPF-009",
    "severity" : "ERROR",
    "message" : "The media-type 'application/x-demo-popup' has already been assigned a handler, with ID 'valid'.",
    "additionalLocations" : 0,
    "locations" : [ {
      "path" : "OPS/content.opf",
      "line" : 33,
      "column" : 70,
      "context" : null
    } ],
    "suggestion" : null
  }, {
    "ID" : "OPF-013",
    "severity" : "ERROR",
    "message" : "The type property 'application/x-demo-slideshow' on the object tag does not match the declared media-type 'application/x-demo-popup' in the OPF manifest.",
    "additionalLocations" : 0,
    "locations" : [ {
      "path" : "OPS/page01.xhtml",
      "line" : 19,
      "column" : 69,
      "context" : "<object data=\"settings.xml\" type=\"application/x-demo-slideshow\">"
    } ],
    "suggestion" : null
  }, {
    "ID" : "OPF-046",
    "severity" : "ERROR",
    "message" : "Scripted property is not set on mediaType handler.",
    "additionalLocations" : 0,
    "locations" : [ {
      "path" : "OPS/impl2.xhtml",
      "line" : 22,
      "column" : 84,
      "context" : null
    } ],
    "suggestion" : null
  }, {
    "ID" : "RSC-005",
    "severity" : "ERROR",
    "message" : "Error while parsing file 'manifest items referenced from the handler attribute of a bindings mediaType element must be of the 'application/xhtml+xml' type (given type was '')'.",
    "additionalLocations" : 0,
    "locations" : [ {
      "path" : "OPS/content.opf",
      "line" : 29,
      "column" : 69,
      "context" : null
    } ],
    "suggestion" : null
  }, {
    "ID" : "SCP-002",
    "severity" : "USAGE",
    "message" : "Use of XMLHttpRequest in EPUB scripts is a security risk.",
    "additionalLocations" : 0,
    "locations" : [ {
      "path" : "OPS/impl.xhtml",
      "line" : 52,
      "column" : 12,
      "context" : "new XMLHttpRequest();"
    } ],
    "suggestion" : null
  }, {
    "ID" : "SCP-010",
    "severity" : "USAGE",
    "message" : "Epub 3 content file contains script.",
    "additionalLocations" : 0,
    "locations" : [ {
      "path" : "OPS/duplicate.xhtml",
      "line" : -1,
      "column" : -1,
      "context" : null
    }, {
      "path" : "OPS/impl.xhtml",
      "line" : -1,
      "column" : -1,
      "context" : null
    } ],
    "suggestion" : null
  } ]
}
