Skip to content
Snippets Groups Projects
Select Git revision
  • e83fd57358019af833ec1e155bcaded387c787db
  • master default protected
  • archivematica_cli_version
  • 0.02
4 results

xml_plugin4rosetta

  • Clone with SSH
  • Clone with HTTPS
  • Plugin to validate XML files

    Compile

    • make clean
    • make
    • make test

    Install

    • copy jar-file to /operational_shared/plugins/custom/

    Configuration

    DTDs ....

    • the plugin uses the XML-catalog file to validate DTD related XML files.
    • the catalog file is specified via plugin settings (if no catalog entry exists an error is reported)
    • the catalog file should be created/modified by xmlcatalog.
    • all paths in catalog file should be absolute
    • for tests you could also use env XML_CATALOG_FILES
    • please ensure, your catalog file is correct, you could test it with example XML_CATALOG_FILES="$(pwd)/example_catalog/" xmlcatalog example_catalog/catalog "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.1 20151215//EN". Replace the last string with the corresponding publicID or systemID.

    Schemas .......

    • the plugin uses local schema files to validate schema/schematron/relaxng related XML files.
    • the schema catalog file has following structure:
    <?xml version="1.0" encoding="UTF-8"?>
    <slubschemacatalog>
       <entry schematype="schema" namespace="http://www.loc.gov/mods/v3" schemaurl="http://www.loc.gov/standards/mods/v3/mods-3-8.xsd" />
       <entry schematype="schema" namespace="http://www.lido-schema.org" schemaurl="http://www.lido-schema.org/schema/v1.1/lido-v1.1.xsd" />
       <entry schematype="schema" namespace="http://slubarchiv.slub-dresden.de/rights1" schemaurl="https://slubarchiv.slub-dresden.de/fileadmin/groups/slubsite/slubarchiv/standards/rights/rights1.xsd" />
       <entry schematype="schema" namespace="http://www.loc.gov/standards/alto/ns-v2#" schemaurl="http://www.loc.gov/standards/alto/alto-v2.0.xsd" />
    </slubschemacatalog>

    For a (german) introduction how to use it, check https://www.data2type.de/xml-xslt-xslfo/docbook/xml-kataloge

    Copyright hints