Skip to content

Commit

Permalink
add JHove XSD schema declaration in XML output // fixes #736
Browse files Browse the repository at this point in the history
  • Loading branch information
tofi86 committed Jan 2, 2017
1 parent b899f7d commit e55039c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/adobe/epubcheck/util/XmlReportImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ public int generateReport()
try
{
setNamespace("http://hul.harvard.edu/ois/xml/ns/jhove");
addPrefixNamespace("xsi","http://www.w3.org/2001/XMLSchema-instance");
List<KeyValue<String, String>> attrs = new ArrayList<KeyValue<String, String>>();
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"));
startElement("jhove", attrs);

generateElement("date", generationDate);
Expand Down

0 comments on commit e55039c

Please sign in to comment.