E-ARK-Software / eark-validator

E-ARK Python Information Package validation library
Apache License 2.0
5 stars 3 forks source link

Incorrect validation of requirement SIP6 #121

Open dockmd opened 3 weeks ago

dockmd commented 3 weeks ago

Test case: https://github.com/DILCISBoard/eark-ip-test-corpus/tree/integration/corpus/SIP/SIP6/testCase.xml contains the definition of 2 packages which should be valid but the validator says they are invalid. Invalid according to the validator, but should be valid: Package: https://github.com/DILCISBoard/eark-ip-test-corpus/tree/integration/corpus/SIP/SIP6/valid/minimal_SIP_plus_mets_SHOULD_MAY_items Output: struct result is: WellFormed {"uid":"4e71941aab174266a3cffe6ef99d54f2","structure":{"status":"WellFormed","messages":[{"rule_id":"CSIPSTR3","severity":"Info","location":"root minimal_SIP_plus_mets_SHOULD_MAY_items","message":"The Information Package MAY be contained in an archive/compressed form, e.g. TAR or ZIP, for storage or transfer. The specific format details should be decided by the interested parties and documented, for example in a submission agreement or statement of access terms."},{"rule_id":"CSIPSTR8","severity":"Info","location":"root minimal_SIP_plus_mets_SHOULD_MAY_items","message":"If any other metadata are available, they MAY be included in separate sub-folders, for example an additional folder named other."},{"rule_id":"CSIPSTR12","severity":"Warn","location":"rep1 representation","message":"The representation folder SHOULD include a metadata file named METS.xml which includes information about the identity and structure of the representation and its components. The recommended best practice is to always have a METS.xml in the representation folder."}]},"metadata":{"schema_results":{"status":"VALID","messages":[]},"schematron_results":{"status":"INVALID","messages":[{"rule_id":"CSIP2","severity":"Error","location":"/mets:mets((@TYPE = 'Textual works � Print') or (@TYPE = 'Textual works � Digital') or (@TYPE = 'Textual works � Electronic Serials') or (@TYPE = 'Digital Musical Composition (score-based representations)') or (@TYPE = 'Musical Scores - Print') or (@TYPE = 'Musical Scores - Digital') or (@TYPE = 'Photographs � Print') or (@TYPE = 'Photographs � Digital') or (@TYPE = 'Other Graphic Images � Print') or (@TYPE = 'Other Graphic Images � Digital') or (@TYPE = 'Microforms') or (@TYPE = 'Audio � On Tangible Medium (digital or analog)') or (@TYPE = 'Audio � Media-independent (digital)') or (@TYPE = 'Motion Pictures � Digital and Physical Media') or (@TYPE = 'Video � File-based and Physical Media') or (@TYPE = 'Software') or (@TYPE = 'Software and Video Games') or (@TYPE = 'Email') or (@TYPE = 'Datasets') or (@TYPE = 'Geospatial Data') or (@TYPE = 'Geographic Information System (GIS) - Vector Data') or (@TYPE = 'GIS Raster and Georeferenced Images') or (@TYPE = 'GIS Vector and Raster Combined') or (@TYPE = 'Non-GIS Cartographic') or (@TYPE = '2D and 3D Computer Aided Design') or (@TYPE = 'Design (schematics, architectural drawings) - Print') or (@TYPE = 'Scanned 3D Objects (output from photogrammetry scanning)') or (@TYPE = 'Databases') or (@TYPE = 'Websites') or (@TYPE = 'Web Archives') or (@TYPE = 'Collection') or (@TYPE = 'Event') or (@TYPE = 'Image') or (@TYPE = 'Interactive resource') or (@TYPE = 'Moving image') or (@TYPE = 'Sound') or (@TYPE = 'Still image') or (@TYPE = 'Text') or (@TYPE = 'Physical object') or (@TYPE = 'Service') or (@TYPE = 'Mixed') or (@TYPE = 'Other')) and (@TYPE != 'Other' or (@TYPE = 'Other' and @csip:OTHERTYPE != ''))/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']","message":"The mets/@TYPE attibute MUST be used to declare the category of the content held in the package, e.g. book, journal, stereograph, video, etc.. Legal values are defined in a fixed vocabulary."},{"rule_id":"CSIP12","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']@TYPE = 'OTHER'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][2]","message":"The agent element MUST have a TYPE attribute with the value \"OTHER\"."},{"rule_id":"CSIP13","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']@OTHERTYPE = 'SOFTWARE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][2]","message":"The agent element MUST have a OTHERTYPE attribute with the value \"SOFTWARE\"."},{"rule_id":"CSIP16","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']mets:note[@csip:NOTETYPE='SOFTWARE VERSION']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][2]","message":"The mandatory agent element’s note child has a @csip:NOTETYPE attribute with a fixed value of “SOFTWARE VERSION”."},{"rule_id":"CSIP12","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']@TYPE = 'OTHER'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][3]","message":"The agent element MUST have a TYPE attribute with the value \"OTHER\"."},{"rule_id":"CSIP13","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']@OTHERTYPE = 'SOFTWARE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][3]","message":"The agent element MUST have a OTHERTYPE attribute with the value \"SOFTWARE\"."},{"rule_id":"CSIP16","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']mets:note[@csip:NOTETYPE='SOFTWARE VERSION']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][3]","message":"The mandatory agent element’s note child has a @csip:NOTETYPE attribute with a fixed value of “SOFTWARE VERSION”."},{"rule_id":"CSIP12","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']@TYPE = 'OTHER'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][4]","message":"The agent element MUST have a TYPE attribute with the value \"OTHER\"."},{"rule_id":"CSIP13","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']@OTHERTYPE = 'SOFTWARE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][4]","message":"The agent element MUST have a OTHERTYPE attribute with the value \"SOFTWARE\"."},{"rule_id":"CSIP15","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']count(mets:note) = 1 and mets:note != ''/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][4]","message":"The agent element MUST have a child note element that records the version of the tool used to create the IP."},{"rule_id":"CSIP16","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']mets:note[@csip:NOTETYPE='SOFTWARE VERSION']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][4]","message":"The mandatory agent element’s note child has a @csip:NOTETYPE attribute with a fixed value of “SOFTWARE VERSION”."},{"rule_id":"CSIP12","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']@TYPE = 'OTHER'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][5]","message":"The agent element MUST have a TYPE attribute with the value \"OTHER\"."},{"rule_id":"CSIP13","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']@OTHERTYPE = 'SOFTWARE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][5]","message":"The agent element MUST have a OTHERTYPE attribute with the value \"SOFTWARE\"."},{"rule_id":"CSIP15","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']count(mets:note) = 1 and mets:note != ''/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][5]","message":"The agent element MUST have a child note element that records the version of the tool used to create the IP."},{"rule_id":"CSIP16","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']mets:note[@csip:NOTETYPE='SOFTWARE VERSION']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][5]","message":"The mandatory agent element’s note child has a @csip:NOTETYPE attribute with a fixed value of “SOFTWARE VERSION”."},{"rule_id":"CSIP45","severity":"Info","location":"/mets:mets/mets:amdSecmets:rightsMD/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='amdSec' and namespace-uri()='http://www.loc.gov/METS/']","message":"A simple rights statement may be used to describe general permissions for the package. Individual representations should state their specific rights in their representation METS file."},{"rule_id":"CSIP114","severity":"Error","location":"/mets:mets/mets:fileSecmets:fileGrp[@USE = 'Representations']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']","message":"A pointer to the METS document describing the representation or pointers to the content being transferred must be present in one or more file groups with mets/fileSec/fileGrp/@USE attribute value “Representations”."},{"rule_id":"CSIP74","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@ADMID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][1]/*[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/']","message":"A file element has an ADMID attribute."},{"rule_id":"CSIP75","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@DMDID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][1]/*[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/']","message":"A file element has an DMDID attribute."},{"rule_id":"CSIP61","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp@ADMID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]","message":"ADMID attribute used."},{"rule_id":"CSIP73","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@OWNERID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]/*[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/'][1]","message":"A file element has an OWNERID attribute."},{"rule_id":"CSIP75","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@DMDID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]/*[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/'][1]","message":"A file element has an DMDID attribute."},{"rule_id":"CSIP73","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@OWNERID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]/*[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/'][2]","message":"A file element has an OWNERID attribute."},{"rule_id":"CSIP75","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@DMDID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]/*[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/'][2]","message":"A file element has an DMDID attribute."},{"rule_id":"CSIP101","severity":"Warn","location":"/mets:mets/mets:structMap[@LABEL = 'CSIP']/mets:divmets:div[@LABEL = 'Representations']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='structMap' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='div' and namespace-uri()='http://www.loc.gov/METS/']","message":"When no representations are present the content referenced in the file section file group with @USE attribute value “Representations” is described in the structural map as a single sub division."},{"rule_id":"CSIP103","severity":"Error","location":"/mets:mets/mets:structMap[@LABEL = 'CSIP']/mets:divmets:div[@LABEL = 'Representations']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='structMap' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='div' and namespace-uri()='http://www.loc.gov/METS/']","message":"The package's content division div element must have the @LABEL attribute value \"Representations\", taken from the vocabulary."},{"rule_id":"CSIP105","severity":"Warn","location":"/mets:mets/mets:structMap[@LABEL = 'CSIP']/mets:divmets:div[@LABEL = 'Representations']/mets:div/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='structMap' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='div' and namespace-uri()='http://www.loc.gov/METS/']","message":"When a package consists of multiple representations, each described by a representation level METS.xml document, there should be a discrete representation div element for each representation."},{"rule_id":"SIP1","severity":"Info","location":"/mets:mets@LABEL/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']","message":"Optional LABEL attribute used as short text package name."},{"rule_id":"SIP3","severity":"Info","location":"/mets:mets/mets:metsHdr@RECORDSTATUS/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']","message":"Optional @metsHdr:RECORDSTATUS attribute used to indicate package status."},{"rule_id":"SIP14","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']/mets:note@NOTETYPE = 'IDENTIFICATIONCODE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][1]/*[local-name()='note' and namespace-uri()='http://www.loc.gov/METS/']","message":"The creator agent element MUST have a NOTETYPE attribute of value IDENTIFICATIONCODE."},{"rule_id":"SIP14","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']/mets:note@NOTETYPE = 'IDENTIFICATIONCODE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][2]/*[local-name()='note' and namespace-uri()='http://www.loc.gov/METS/']","message":"The creator agent element MUST have a NOTETYPE attribute of value IDENTIFICATIONCODE."},{"rule_id":"SIP14","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']/mets:note@NOTETYPE = 'IDENTIFICATIONCODE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][3]/*[local-name()='note' and namespace-uri()='http://www.loc.gov/METS/']","message":"The creator agent element MUST have a NOTETYPE attribute of value IDENTIFICATIONCODE."},{"rule_id":"SIP14","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']/mets:note@NOTETYPE = 'IDENTIFICATIONCODE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][4]/*[local-name()='note' and namespace-uri()='http://www.loc.gov/METS/'][1]","message":"The creator agent element MUST have a NOTETYPE attribute of value IDENTIFICATIONCODE."},{"rule_id":"SIP14","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']/mets:note@NOTETYPE = 'IDENTIFICATIONCODE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][4]/*[local-name()='note' and namespace-uri()='http://www.loc.gov/METS/'][2]","message":"The creator agent element MUST have a NOTETYPE attribute of value IDENTIFICATIONCODE."},{"rule_id":"SIP14","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']/mets:note@NOTETYPE = 'IDENTIFICATIONCODE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][5]/*[local-name()='note' and namespace-uri()='http://www.loc.gov/METS/'][1]","message":"The creator agent element MUST have a NOTETYPE attribute of value IDENTIFICATIONCODE."},{"rule_id":"SIP14","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']/mets:note@NOTETYPE = 'IDENTIFICATIONCODE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][5]/*[local-name()='note' and namespace-uri()='http://www.loc.gov/METS/'][2]","message":"The creator agent element MUST have a NOTETYPE attribute of value IDENTIFICATIONCODE."},{"rule_id":"SIP5","severity":"Info","location":"/mets:mets/mets:metsHdr/mets:altRecordID@TYPE = 'SUBMISSIONAGREEMENT'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='altRecordID' and namespace-uri()='http://www.loc.gov/METS/'][1]","message":"Optional altRecordID element identifying submission agreement."},{"rule_id":"SIP6","severity":"Info","location":"/mets:mets/mets:metsHdr/mets:altRecordID@TYPE = 'PREVIOUSSUBMISSIONAGREEMENT'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='altRecordID' and namespace-uri()='http://www.loc.gov/METS/'][2]","message":"Optional altRecordID element identifying previous submission agreement."},{"rule_id":"SIP6","severity":"Info","location":"/mets:mets/mets:metsHdr/mets:altRecordID@TYPE = 'PREVIOUSSUBMISSIONAGREEMENT'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='altRecordID' and namespace-uri()='http://www.loc.gov/METS/'][3]","message":"Optional altRecordID element identifying previous submission agreement."},{"rule_id":"SIP7","severity":"Info","location":"/mets:mets/mets:metsHdr/mets:altRecordID@TYPE = 'REFERENCECODE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='altRecordID' and namespace-uri()='http://www.loc.gov/METS/'][4]","message":"Optional altRecordID element identifying reference code."},{"rule_id":"SIP8","severity":"Info","location":"/mets:mets/mets:metsHdr/mets:altRecordID@TYPE = 'PREVIOUSREFERENCECODE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='altRecordID' and namespace-uri()='http://www.loc.gov/METS/'][5]","message":"Optional altRecordID element identifying previous reference code."},{"rule_id":"SIP8","severity":"Info","location":"/mets:mets/mets:metsHdr/mets:altRecordID@TYPE = 'PREVIOUSREFERENCECODE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='altRecordID' and namespace-uri()='http://www.loc.gov/METS/'][6]","message":"Optional altRecordID element identifying previous reference code."},{"rule_id":"CSIP73","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@sip:FILEFORMATNAME/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]/*[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/'][2]","message":"A file element has an FILEFORMATNAME attribute."},{"rule_id":"CSIP74","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@sip:FILEFORMATVERSION/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]/*[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/'][2]","message":"A file element has an FILEFORMATVERSION attribute."},{"rule_id":"CSIP75","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@sip:FILEFORMATREGISTRY/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]/*[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/'][2]","message":"A file element has an FILEFORMATREGISTRY attribute."},{"rule_id":"CSIP76","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@sip:FILEFORMATKEY/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]/*[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/'][2]","message":"A file element has an FILEFORMATKEY attribute."}]}},"package":{"mets":{"root":{"namespaces":{"":"http://www.loc.gov/METS/","csip":"https://DILCIS.eu/XML/METS/CSIPExtensionMETS","sip":"https://DILCIS.eu/XML/METS/SIPExtensionMETS","xsi":"http://www.w3.org/2001/XMLSchema-instance","xlink":"http://www.w3.org/1999/xlink"},"objid":"minimal_SIP_plus_mets_SHOULD_MAY_items","label":"Health records of 2017","type":"OTHER","profile":"https://earksip.dilcis.eu/profile/E-ARK-SIP.xml"},"file_entries":[{"path":"metadata/descriptive/package_archival_descriptions_ead2002.xml","type":"file","size":"53968","checksum":{"algorithm":"SHA-256","value":"277813238F172F44E54820B9D4AEAC8478E2CF54333F853F0E0A29BEC58550D2"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/metadata/descriptive/rep1_archival_descriptions_ead2002.xml","type":"file","size":"53648","checksum":{"algorithm":"SHA-256","value":"7AC0597465CDFAFD6DC7D6A9720D8C71C88D234B6A66B46C102EA691670AB5A4"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"metadata/preservation/package_preservation_meta_premis_v3.xml","type":"file","size":"16464","checksum":{"algorithm":"SHA-256","value":"A541189BF81FB4847AD980CEC7B6E6AD5F0441D23D16441F5998B6BB55ECF2EA"},"mimetype":"text/xml","isValid":true,"errors":[]},{"path":"representations/rep1/metadata/preservation/rep1_preservation_meta_premis_v2-1.xml","type":"file","size":"23828","checksum":{"algorithm":"SHA-256","value":"6EDB936393AA9A291E8523F949A12B88AA83CAA4A95149C7CFE3C20F37B25113"},"mimetype":"text/xml","isValid":true,"errors":[]},{"path":"documentation/Doc1.txt","type":"file","size":"40","checksum":{"algorithm":"MD5","value":"F57DBBDDF87F18043C2029D978749318"},"mimetype":"text/plain","isValid":true,"errors":[]},{"path":"schemas/DILCISExtensionMETS.xsd","type":"file","size":"1633","checksum":{"algorithm":"MD5","value":"E99C19B9CA1271C1D9BAFED19C4BD50A"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/ead2002.xsd","type":"file","size":"98321","checksum":{"algorithm":"MD5","value":"0856696BCEF5C849EB10B95B808AB7C0"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/mets.xsd","type":"file","size":"136472","checksum":{"algorithm":"MD5","value":"D303B7A71BA2B4FF0061BDCBA0F152E0"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/xlink.xsd","type":"file","size":"3180","checksum":{"algorithm":"MD5","value":"6BDC7F9459A502964F889D70A335CECE"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/premis-v3-0.xsd","type":"file","size":"52845","checksum":{"algorithm":"MD5","value":"60DFC63A796C507AF85C6AB635BFDF8E"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/schemas/Estonian_UAM_arh_classification_scheme_v2.0.xsd","type":"file","size":"54962","checksum":{"algorithm":"MD5","value":"59836748963A11653F1B6ACF066C6715"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/schemas/premis-v2-1.xsd","type":"file","size":"57056","checksum":{"algorithm":"MD5","value":"F8115667D6BF917F7C44E172D937FD5A"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/data/archival_record_xyz123_Estonian_UAM_arh.xml","type":"file","size":"59785","checksum":{"algorithm":"MD5","value":"16967CF0D9517EF180154732C1F8316F"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/data/43805112643_Mary_Solberg.hdat","type":"file","size":"112","checksum":{"algorithm":"MD5","value":"952446D8F13BBF4F20BA972943B4DE43"},"mimetype":"application/xml","isValid":true,"errors":[]}]},"details":{"name":"minimal_SIP_plus_mets_SHOULD_MAY_items","label":"Health records of 2017","oaispackagetype":"SIP","othertype":"Health file","contentinformationtype":"OTHER","checksums":[]},"representations":[]}}

Package: https://github.com/DILCISBoard/eark-ip-test-corpus/tree/integration/corpus/SIP/SIP6/valid/minimal_SIP_plus_mets_SHOULD_MAY_items Output: struct result is: WellFormed {"uid":"1ebd933c050f4741b8a27ca79d426517","structure":{"status":"WellFormed","messages":[{"rule_id":"CSIPSTR3","severity":"Info","location":"root minimal_SIP_plus_mets_SHOULD_MAY_items","message":"The Information Package MAY be contained in an archive/compressed form, e.g. TAR or ZIP, for storage or transfer. The specific format details should be decided by the interested parties and documented, for example in a submission agreement or statement of access terms."},{"rule_id":"CSIPSTR8","severity":"Info","location":"root minimal_SIP_plus_mets_SHOULD_MAY_items","message":"If any other metadata are available, they MAY be included in separate sub-folders, for example an additional folder named other."},{"rule_id":"CSIPSTR12","severity":"Warn","location":"rep1 representation","message":"The representation folder SHOULD include a metadata file named METS.xml which includes information about the identity and structure of the representation and its components. The recommended best practice is to always have a METS.xml in the representation folder."}]},"metadata":{"schema_results":{"status":"VALID","messages":[]},"schematron_results":{"status":"INVALID","messages":[{"rule_id":"CSIP2","severity":"Error","location":"/mets:mets((@TYPE = 'Textual works � Print') or (@TYPE = 'Textual works � Digital') or (@TYPE = 'Textual works � Electronic Serials') or (@TYPE = 'Digital Musical Composition (score-based representations)') or (@TYPE = 'Musical Scores - Print') or (@TYPE = 'Musical Scores - Digital') or (@TYPE = 'Photographs � Print') or (@TYPE = 'Photographs � Digital') or (@TYPE = 'Other Graphic Images � Print') or (@TYPE = 'Other Graphic Images � Digital') or (@TYPE = 'Microforms') or (@TYPE = 'Audio � On Tangible Medium (digital or analog)') or (@TYPE = 'Audio � Media-independent (digital)') or (@TYPE = 'Motion Pictures � Digital and Physical Media') or (@TYPE = 'Video � File-based and Physical Media') or (@TYPE = 'Software') or (@TYPE = 'Software and Video Games') or (@TYPE = 'Email') or (@TYPE = 'Datasets') or (@TYPE = 'Geospatial Data') or (@TYPE = 'Geographic Information System (GIS) - Vector Data') or (@TYPE = 'GIS Raster and Georeferenced Images') or (@TYPE = 'GIS Vector and Raster Combined') or (@TYPE = 'Non-GIS Cartographic') or (@TYPE = '2D and 3D Computer Aided Design') or (@TYPE = 'Design (schematics, architectural drawings) - Print') or (@TYPE = 'Scanned 3D Objects (output from photogrammetry scanning)') or (@TYPE = 'Databases') or (@TYPE = 'Websites') or (@TYPE = 'Web Archives') or (@TYPE = 'Collection') or (@TYPE = 'Event') or (@TYPE = 'Image') or (@TYPE = 'Interactive resource') or (@TYPE = 'Moving image') or (@TYPE = 'Sound') or (@TYPE = 'Still image') or (@TYPE = 'Text') or (@TYPE = 'Physical object') or (@TYPE = 'Service') or (@TYPE = 'Mixed') or (@TYPE = 'Other')) and (@TYPE != 'Other' or (@TYPE = 'Other' and @csip:OTHERTYPE != ''))/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']","message":"The mets/@TYPE attibute MUST be used to declare the category of the content held in the package, e.g. book, journal, stereograph, video, etc.. Legal values are defined in a fixed vocabulary."},{"rule_id":"CSIP12","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']@TYPE = 'OTHER'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][2]","message":"The agent element MUST have a TYPE attribute with the value \"OTHER\"."},{"rule_id":"CSIP13","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']@OTHERTYPE = 'SOFTWARE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][2]","message":"The agent element MUST have a OTHERTYPE attribute with the value \"SOFTWARE\"."},{"rule_id":"CSIP16","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']mets:note[@csip:NOTETYPE='SOFTWARE VERSION']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][2]","message":"The mandatory agent element’s note child has a @csip:NOTETYPE attribute with a fixed value of “SOFTWARE VERSION”."},{"rule_id":"CSIP12","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']@TYPE = 'OTHER'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][3]","message":"The agent element MUST have a TYPE attribute with the value \"OTHER\"."},{"rule_id":"CSIP13","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']@OTHERTYPE = 'SOFTWARE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][3]","message":"The agent element MUST have a OTHERTYPE attribute with the value \"SOFTWARE\"."},{"rule_id":"CSIP16","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']mets:note[@csip:NOTETYPE='SOFTWARE VERSION']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][3]","message":"The mandatory agent element’s note child has a @csip:NOTETYPE attribute with a fixed value of “SOFTWARE VERSION”."},{"rule_id":"CSIP12","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']@TYPE = 'OTHER'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][4]","message":"The agent element MUST have a TYPE attribute with the value \"OTHER\"."},{"rule_id":"CSIP13","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']@OTHERTYPE = 'SOFTWARE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][4]","message":"The agent element MUST have a OTHERTYPE attribute with the value \"SOFTWARE\"."},{"rule_id":"CSIP15","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']count(mets:note) = 1 and mets:note != ''/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][4]","message":"The agent element MUST have a child note element that records the version of the tool used to create the IP."},{"rule_id":"CSIP16","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']mets:note[@csip:NOTETYPE='SOFTWARE VERSION']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][4]","message":"The mandatory agent element’s note child has a @csip:NOTETYPE attribute with a fixed value of “SOFTWARE VERSION”."},{"rule_id":"CSIP12","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']@TYPE = 'OTHER'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][5]","message":"The agent element MUST have a TYPE attribute with the value \"OTHER\"."},{"rule_id":"CSIP13","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']@OTHERTYPE = 'SOFTWARE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][5]","message":"The agent element MUST have a OTHERTYPE attribute with the value \"SOFTWARE\"."},{"rule_id":"CSIP15","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']count(mets:note) = 1 and mets:note != ''/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][5]","message":"The agent element MUST have a child note element that records the version of the tool used to create the IP."},{"rule_id":"CSIP16","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']mets:note[@csip:NOTETYPE='SOFTWARE VERSION']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][5]","message":"The mandatory agent element’s note child has a @csip:NOTETYPE attribute with a fixed value of “SOFTWARE VERSION”."},{"rule_id":"CSIP45","severity":"Info","location":"/mets:mets/mets:amdSecmets:rightsMD/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='amdSec' and namespace-uri()='http://www.loc.gov/METS/']","message":"A simple rights statement may be used to describe general permissions for the package. Individual representations should state their specific rights in their representation METS file."},{"rule_id":"CSIP114","severity":"Error","location":"/mets:mets/mets:fileSecmets:fileGrp[@USE = 'Representations']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']","message":"A pointer to the METS document describing the representation or pointers to the content being transferred must be present in one or more file groups with mets/fileSec/fileGrp/@USE attribute value “Representations”."},{"rule_id":"CSIP74","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@ADMID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][1]/*[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/']","message":"A file element has an ADMID attribute."},{"rule_id":"CSIP75","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@DMDID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][1]/*[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/']","message":"A file element has an DMDID attribute."},{"rule_id":"CSIP61","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp@ADMID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]","message":"ADMID attribute used."},{"rule_id":"CSIP73","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@OWNERID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]/*[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/'][1]","message":"A file element has an OWNERID attribute."},{"rule_id":"CSIP75","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@DMDID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]/*[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/'][1]","message":"A file element has an DMDID attribute."},{"rule_id":"CSIP73","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@OWNERID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]/*[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/'][2]","message":"A file element has an OWNERID attribute."},{"rule_id":"CSIP75","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@DMDID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]/*[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/'][2]","message":"A file element has an DMDID attribute."},{"rule_id":"CSIP101","severity":"Warn","location":"/mets:mets/mets:structMap[@LABEL = 'CSIP']/mets:divmets:div[@LABEL = 'Representations']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='structMap' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='div' and namespace-uri()='http://www.loc.gov/METS/']","message":"When no representations are present the content referenced in the file section file group with @USE attribute value “Representations” is described in the structural map as a single sub division."},{"rule_id":"CSIP103","severity":"Error","location":"/mets:mets/mets:structMap[@LABEL = 'CSIP']/mets:divmets:div[@LABEL = 'Representations']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='structMap' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='div' and namespace-uri()='http://www.loc.gov/METS/']","message":"The package's content division div element must have the @LABEL attribute value \"Representations\", taken from the vocabulary."},{"rule_id":"CSIP105","severity":"Warn","location":"/mets:mets/mets:structMap[@LABEL = 'CSIP']/mets:divmets:div[@LABEL = 'Representations']/mets:div/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='structMap' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='div' and namespace-uri()='http://www.loc.gov/METS/']","message":"When a package consists of multiple representations, each described by a representation level METS.xml document, there should be a discrete representation div element for each representation."},{"rule_id":"SIP1","severity":"Info","location":"/mets:mets@LABEL/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']","message":"Optional LABEL attribute used as short text package name."},{"rule_id":"SIP3","severity":"Info","location":"/mets:mets/mets:metsHdr@RECORDSTATUS/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']","message":"Optional @metsHdr:RECORDSTATUS attribute used to indicate package status."},{"rule_id":"SIP14","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']/mets:note@NOTETYPE = 'IDENTIFICATIONCODE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][1]/*[local-name()='note' and namespace-uri()='http://www.loc.gov/METS/']","message":"The creator agent element MUST have a NOTETYPE attribute of value IDENTIFICATIONCODE."},{"rule_id":"SIP14","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']/mets:note@NOTETYPE = 'IDENTIFICATIONCODE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][2]/*[local-name()='note' and namespace-uri()='http://www.loc.gov/METS/']","message":"The creator agent element MUST have a NOTETYPE attribute of value IDENTIFICATIONCODE."},{"rule_id":"SIP14","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']/mets:note@NOTETYPE = 'IDENTIFICATIONCODE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][3]/*[local-name()='note' and namespace-uri()='http://www.loc.gov/METS/']","message":"The creator agent element MUST have a NOTETYPE attribute of value IDENTIFICATIONCODE."},{"rule_id":"SIP14","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']/mets:note@NOTETYPE = 'IDENTIFICATIONCODE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][4]/*[local-name()='note' and namespace-uri()='http://www.loc.gov/METS/'][1]","message":"The creator agent element MUST have a NOTETYPE attribute of value IDENTIFICATIONCODE."},{"rule_id":"SIP14","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']/mets:note@NOTETYPE = 'IDENTIFICATIONCODE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][4]/*[local-name()='note' and namespace-uri()='http://www.loc.gov/METS/'][2]","message":"The creator agent element MUST have a NOTETYPE attribute of value IDENTIFICATIONCODE."},{"rule_id":"SIP14","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']/mets:note@NOTETYPE = 'IDENTIFICATIONCODE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][5]/*[local-name()='note' and namespace-uri()='http://www.loc.gov/METS/'][1]","message":"The creator agent element MUST have a NOTETYPE attribute of value IDENTIFICATIONCODE."},{"rule_id":"SIP14","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']/mets:note@NOTETYPE = 'IDENTIFICATIONCODE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/'][5]/*[local-name()='note' and namespace-uri()='http://www.loc.gov/METS/'][2]","message":"The creator agent element MUST have a NOTETYPE attribute of value IDENTIFICATIONCODE."},{"rule_id":"SIP5","severity":"Info","location":"/mets:mets/mets:metsHdr/mets:altRecordID@TYPE = 'SUBMISSIONAGREEMENT'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='altRecordID' and namespace-uri()='http://www.loc.gov/METS/'][1]","message":"Optional altRecordID element identifying submission agreement."},{"rule_id":"SIP6","severity":"Info","location":"/mets:mets/mets:metsHdr/mets:altRecordID@TYPE = 'PREVIOUSSUBMISSIONAGREEMENT'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='altRecordID' and namespace-uri()='http://www.loc.gov/METS/'][2]","message":"Optional altRecordID element identifying previous submission agreement."},{"rule_id":"SIP6","severity":"Info","location":"/mets:mets/mets:metsHdr/mets:altRecordID@TYPE = 'PREVIOUSSUBMISSIONAGREEMENT'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='altRecordID' and namespace-uri()='http://www.loc.gov/METS/'][3]","message":"Optional altRecordID element identifying previous submission agreement."},{"rule_id":"SIP7","severity":"Info","location":"/mets:mets/mets:metsHdr/mets:altRecordID@TYPE = 'REFERENCECODE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='altRecordID' and namespace-uri()='http://www.loc.gov/METS/'][4]","message":"Optional altRecordID element identifying reference code."},{"rule_id":"SIP8","severity":"Info","location":"/mets:mets/mets:metsHdr/mets:altRecordID@TYPE = 'PREVIOUSREFERENCECODE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='altRecordID' and namespace-uri()='http://www.loc.gov/METS/'][5]","message":"Optional altRecordID element identifying previous reference code."},{"rule_id":"SIP8","severity":"Info","location":"/mets:mets/mets:metsHdr/mets:altRecordID@TYPE = 'PREVIOUSREFERENCECODE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='altRecordID' and namespace-uri()='http://www.loc.gov/METS/'][6]","message":"Optional altRecordID element identifying previous reference code."},{"rule_id":"CSIP73","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@sip:FILEFORMATNAME/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]/*[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/'][2]","message":"A file element has an FILEFORMATNAME attribute."},{"rule_id":"CSIP74","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@sip:FILEFORMATVERSION/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]/*[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/'][2]","message":"A file element has an FILEFORMATVERSION attribute."},{"rule_id":"CSIP75","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@sip:FILEFORMATREGISTRY/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]/*[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/'][2]","message":"A file element has an FILEFORMATREGISTRY attribute."},{"rule_id":"CSIP76","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@sip:FILEFORMATKEY/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/*[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]/*[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/'][2]","message":"A file element has an FILEFORMATKEY attribute."}]}},"package":{"mets":{"root":{"namespaces":{"":"http://www.loc.gov/METS/","csip":"https://DILCIS.eu/XML/METS/CSIPExtensionMETS","sip":"https://DILCIS.eu/XML/METS/SIPExtensionMETS","xsi":"http://www.w3.org/2001/XMLSchema-instance","xlink":"http://www.w3.org/1999/xlink"},"objid":"minimal_SIP_plus_mets_SHOULD_MAY_items","label":"Health records of 2017","type":"OTHER","profile":"https://earksip.dilcis.eu/profile/E-ARK-SIP.xml"},"file_entries":[{"path":"metadata/descriptive/package_archival_descriptions_ead2002.xml","type":"file","size":"53968","checksum":{"algorithm":"SHA-256","value":"277813238F172F44E54820B9D4AEAC8478E2CF54333F853F0E0A29BEC58550D2"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/metadata/descriptive/rep1_archival_descriptions_ead2002.xml","type":"file","size":"53648","checksum":{"algorithm":"SHA-256","value":"7AC0597465CDFAFD6DC7D6A9720D8C71C88D234B6A66B46C102EA691670AB5A4"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"metadata/preservation/package_preservation_meta_premis_v3.xml","type":"file","size":"16464","checksum":{"algorithm":"SHA-256","value":"A541189BF81FB4847AD980CEC7B6E6AD5F0441D23D16441F5998B6BB55ECF2EA"},"mimetype":"text/xml","isValid":true,"errors":[]},{"path":"representations/rep1/metadata/preservation/rep1_preservation_meta_premis_v2-1.xml","type":"file","size":"23828","checksum":{"algorithm":"SHA-256","value":"6EDB936393AA9A291E8523F949A12B88AA83CAA4A95149C7CFE3C20F37B25113"},"mimetype":"text/xml","isValid":true,"errors":[]},{"path":"documentation/Doc1.txt","type":"file","size":"40","checksum":{"algorithm":"MD5","value":"F57DBBDDF87F18043C2029D978749318"},"mimetype":"text/plain","isValid":true,"errors":[]},{"path":"schemas/DILCISExtensionMETS.xsd","type":"file","size":"1633","checksum":{"algorithm":"MD5","value":"E99C19B9CA1271C1D9BAFED19C4BD50A"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/ead2002.xsd","type":"file","size":"98321","checksum":{"algorithm":"MD5","value":"0856696BCEF5C849EB10B95B808AB7C0"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/mets.xsd","type":"file","size":"136472","checksum":{"algorithm":"MD5","value":"D303B7A71BA2B4FF0061BDCBA0F152E0"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/xlink.xsd","type":"file","size":"3180","checksum":{"algorithm":"MD5","value":"6BDC7F9459A502964F889D70A335CECE"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/premis-v3-0.xsd","type":"file","size":"52845","checksum":{"algorithm":"MD5","value":"60DFC63A796C507AF85C6AB635BFDF8E"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/schemas/Estonian_UAM_arh_classification_scheme_v2.0.xsd","type":"file","size":"54962","checksum":{"algorithm":"MD5","value":"59836748963A11653F1B6ACF066C6715"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/schemas/premis-v2-1.xsd","type":"file","size":"57056","checksum":{"algorithm":"MD5","value":"F8115667D6BF917F7C44E172D937FD5A"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/data/archival_record_xyz123_Estonian_UAM_arh.xml","type":"file","size":"59785","checksum":{"algorithm":"MD5","value":"16967CF0D9517EF180154732C1F8316F"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/data/43805112643_Mary_Solberg.hdat","type":"file","size":"112","checksum":{"algorithm":"MD5","value":"952446D8F13BBF4F20BA972943B4DE43"},"mimetype":"application/xml","isValid":true,"errors":[]}]},"details":{"name":"minimal_SIP_plus_mets_SHOULD_MAY_items","label":"Health records of 2017","oaispackagetype":"SIP","othertype":"Health file","contentinformationtype":"OTHER","checksums":[]},"representations":[]}}