Test Case SIP7
SIP7
Testable: TRUE Schema Valid: invalid XML Validation Error: Element 'package', attribute 'isImplemented': The attribute 'isImplemented' is not allowed. Description: mets/metsHdr/altRecordID[@TYPE='REFERENCECODE'] MAY exist. If mets/metsHdr/altRecordID[@TYPE='REFERENCECODE'] exists then it MUST have a text node with a reference code indicating where in the archival hierarchy the package shall be placed in the OAIS. mets/metsHdr/altRecordID[@TYPE='REFERENCECODE'] MAY exist only once.
Rules
-
Rule ID: 1
Descripton: mets/metsHdr/altRecordID[@TYPE='REFERENCECODE'] MAY exist.
INFO: mets/metsHdr/altRecordID[@TYPE='REFERENCECODE'] does not exist. MAY be: mets/metsHdr/altRecordID[@TYPE='REFERENCECODE'] exists and its text is a reference code indicating where in the archival hierarchy the package shall be placed in the OAIS.
Packages:
altRecordID_REFERENCECODE_not_exist
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.87s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.96s False E-ARK Python Validator v1.1.3 0 invalid 0.40s False minimal_SIP_plus_mets_SHOULD_MAY_items
Expected result: Valid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.87s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.94s True E-ARK Python Validator v1.1.3 0 invalid 0.41s True -
Rule ID: 2
Descripton: If mets/metsHdr/altRecordID[@TYPE='REFERENCECODE'] exists then it MUST have a text node.
INFO: mets/metsHdr/altRecordID[@TYPE='REFERENCECODE'] element has no text node. MUST be: if mets/metsHdr/altRecordID[@TYPE='REFERENCECODE'] exists then it MUST have text that is a reference code indicating where in the archival hierarchy the package shall be placed in the OAIS.
Packages:
altRecordID_REFERENCECODE_no_text
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.90s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.97s True E-ARK Python Validator v1.1.3 0 invalid 0.39s True minimal_SIP_plus_mets_SHOULD_MAY_items
Expected result: Valid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.87s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.94s True E-ARK Python Validator v1.1.3 0 invalid 0.41s True -
Rule ID: 3
Descripton: mets/metsHdr/altRecordID[@TYPE='REFERENCECODE'] MAY exist only once.
INFO: mets/metsHdr/altRecordID[@TYPE='REFERENCECODE'] exists more than once. MAY be: mets/metsHdr/altRecordID[@TYPE='REFERENCECODE'] exists once and its text is a reference code indicating where in the archival hierarchy the package shall be placed in the OAIS.
Packages:
altRecordID_REFERENCECODE_2_instances
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.88s False E-ARK Python Validator v1.1.3.dev7 0 invalid 3.00s True E-ARK Python Validator v1.1.3 0 invalid 0.39s True minimal_SIP_plus_mets_SHOULD_MAY_items
Expected result: Valid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.87s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.94s True E-ARK Python Validator v1.1.3 0 invalid 0.41s True