Test Case CSIP3
CSIP3
Testable: TRUE Schema Valid: Valid Description: If mets/@TYPE = "OTHER" then mets/@csip:OTHERTYPE: - MUST exist; - MUST have a string value declaring the content category of the package/representation; - MUST NOT have a value from the VocabularyContentCategory because these vocabulary values MUST be used for the attribute mets/@TYPE. If mets/@csip:OTHERTYPE exists then mets/@TYPE MUST be "OTHER".
Rules
-
Rule ID: 1
Descripton: If mets/@TYPE = "OTHER" then mets/@csip:OTHERTYPE MUST NOT have a value from the VocabularyContentCategory because these vocabulary values MUST be used for the attribute mets/@TYPE.
ERROR: mets/@csip:OTHERTYPE attribute has a value that MUST instead be used for mets/@TYPE. MUST be: mets/@csip:OTHERTYPE MUST describe a content category that falls outside of the VocabularyContentCategory vocabulary.
Packages:
mets-xml_mets_TYPE_OTHER_and_csip-OTHERTYPE_vocabulary_1
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code minimal_IP_with_1_rep_mets_TYPE_OTHER
Expected result: Valid
Validator Version Ret Code Valid Duration Contains Code -
Rule ID: 2
Descripton: If mets/@csip:OTHERTYPE exists then mets/@TYPE MUST be "OTHER".
ERROR: mets/@csip:OTHERTYPE exists although mets/@TYPE is not "OTHER". MUST be: mets/@csip:OTHERTYPE MUST only exist if mets/@TYPE = "OTHER".
Packages:
mets-xml_mets_TYPE_not_OTHER_and_csip-OTHERTYPE_exists
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code minimal_IP_with_1_rep_mets_TYPE_OTHER
Expected result: Valid
Validator Version Ret Code Valid Duration Contains Code