Test Case CSIP76
CSIP76
Testable: TRUE Schema Valid: invalid XML Validation Error: Element 'package', attribute 'isImplemented': The attribute 'isImplemented' is not allowed. Description: The FLocat element is optional in the METS.xsd but mandatory according to CSIP76. The cardinality according to METS.xsd is 0..n and 1..1 according to CSIP76. Therefore there need to be a rule that checks that there are FLocat-elements on all file-elements and another rule that checks that there must be maximum one FLocat-element per file-element This is one of the testcases where an error can occur many times. It would be best if the validator came up with a number of occurences with the possibility to see a list with the occurences
Rules
-
Rule ID: 1
Descripton: All file-elements MUST have a nested FLocat-element.
ERROR: Every file-element MUST have a FLocat-element.
Packages:
fileSec_fileGrp_file_missing_FLocat_element
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 1 invalid 0.53s False E-ARK Python Validator v1.1.3 1 invalid 0.36s False minimal_IP_with_1_representation
Expected result: Valid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.91s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.78s False E-ARK Python Validator v1.1.3 0 invalid 0.39s False -
Rule ID: 2
Descripton: There MUST be maximum one nested FLocat-element in each file-element
ERROR: There MUST be maximum one nested FLocat-element in each file-element
Packages:
fileSec_fileGrp_file_several_FLocats
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.88s False E-ARK Python Validator v1.1.3 0 invalid 0.38s False minimal_IP_with_1_representation
Expected result: Valid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.91s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.78s False E-ARK Python Validator v1.1.3 0 invalid 0.39s False