Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    Ingesting METS xml as a file fails validation with error: "Errors returned during metadata extraction; can't find the declaration of element 'mets:mets"

    • Product: Rosetta
    • Product Version: v5.3
    • Relevant for Installation Type: Local

    Description

    It is possible to ingest a METS xml as a file_stream (in addition to the main METS in the content folder).

    Note that when you try to ingest a mets.xml file as a file_stream it will fail validation with the following error (e.g.):

     [error: Errors returned during metadata extraction; can't find the declaration of element 'mets:mets']

    More > MD Error in TA workbench > Validation for "mets.xml" you get the following error: "An Error Occurred - Please contact system staff"

    Resolution


    The METS xml ingested as a file in the content/streams directory has no declaration of the xsd (xmlns:xsd="http://www.loc.gov/standards/mets/mets.xsd">).

    According to section 4, Validation, http://jhove.sourceforge.net/xml-hul.html, the jhove xml hul validation should not be applied and only well formed-ness should be checked.

    Even local jhove xml hul gives the same result as Rosetta (i.e. well formed, not valid).

    So, if you don’t need to have the METS xml validated against the xsd in the validation stage of Rosetta ingest, you could add a "MD Error" exception in Rosetta to ignore this.

    If you feel you do need to validate these files with jhove’s xml hul, please refer to the "How to create a new version of xml hul plugin" link in the Additional Information section below.

    Additional Information

    The How to create a new version of xml hul plugin includes the METS xsd in the xml catalog so that the validation can be performed against a locally-stored xsd during Rosetta’s validation stage.

     

     


    • Article last edited: 21-Dec-2017
    • Was this article helpful?