Test Case CSIP62
CSIP62
Testable: TRUE Schema Valid: invalid XML Validation Error: Element 'package', attribute 'isImplemented': The attribute 'isImplemented' is not allowed. Description: If mets/fileSec/fileGrp/@USE = "Representations" then mets/fileSec/fileGrp/@csip:CONTENTINFORMATIONTYPE MUST exist. If mets/fileSec/fileGrp/@csip:CONTENTINFORMATIONTYPE exists, it MUST have a value from the VocabularyContentInformationTypeSpecification.
Rules
-
Rule ID: 1
Descripton: If mets/fileSec/fileGrp/@USE = "Representations" then mets/fileSec/fileGrp/@csip:CONTENTINFORMATIONTYPE MUST exist.
ERROR: mets/fileSec/fileGrp/@csip:CONTENTINFORMATIONTYPE attribute does not exist. MUST be: if mets/fileSec/fileGrp/@USE = "Representations" then mets/fileSec/fileGrp/@csip:CONTENTINFORMATIONTYPE MUST exist and have a value from VocabularyContentInformationTypeSpecification.
Packages:
fileGrp_CONTENTINFORMATIONTYPE_not_exist
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 1.00s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.29s True E-ARK Python Validator v1.1.3 0 invalid 0.39s True valid_IP_with_SHOULD_MAY_1_rep
Expected result: Valid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.92s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.28s False E-ARK Python Validator v1.1.3 0 invalid 0.38s False -
Rule ID: 2
Descripton: If mets/fileSec/fileGrp/@csip:CONTENTINFORMATIONTYPE exists, it MUST have a value from the VocabularyContentInformationTypeSpecification.
ERROR: mets/fileSec/fileGrp/@csip:CONTENTINFORMATIONTYPE attribute has incorrect value. MUST be: mets/fileSec/fileGrp/@csip:CONTENTINFORMATIONTYPE has a value from the VocabularyContentInformationTypeSpecification.
Packages:
root_mets_fileGrp_CONTENTINFORMATIONTYPE_incorrect
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.95s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.33s True E-ARK Python Validator v1.1.3 0 invalid 0.39s False valid_IP_with_SHOULD_MAY_1_rep
Expected result: Valid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.92s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.28s False E-ARK Python Validator v1.1.3 0 invalid 0.38s False