Tech Blog

Adding an XSD Schema to JHOVE XML-HUL

Running JHOVE validation with XML-HUL requires access to all referenced XSDs and DTDs in the xml file. This can cause significant performance issues during the validation process.

In order to address this problem, the JHOVE XML-HUL plugin uses an alternative method: XML cataloging. This allows storing copies of all XSDs on the Rosetta environment and making them available to JHOVE. The catalog of XSD files is stored in the plugin itself. During the validation process, the plugin will extract this list of files to /exlibris/dps/d4_1/system.dir/conf/jhove/ (if it does not yet exist or if the plugin has been updated).

The XSD catalog is managed by the Format Library Working Group, and all change requests should be addressed to the Group according to the accepted procedure.

The following steps describe how to add a new XSD file and reference to your JHOVE XML-HUL plugin, independent of the Format Library version. In this example, we will add a reference to ead.xsd.

1. Add the new schema file to schema_files.zip

2. In jhove.conf, under XmlModule class module, add a new mapping for your XSD. The target should reflect the location of the XSD within schema_files.zip.

 

 

4. Deploy the new plugin.

Leave a Reply