Test Case CSIP69
CSIP69
Testable: TRUE Schema Valid: invalid XML Validation Error: Element 'package', attribute 'isImplemented': The attribute 'isImplemented' is not allowed. Description: The SIZE-attribute is optional in METS.xsd but mandatory in CSIP69, therefore two tests are needed: mets/fileSec/fileGrp/file/@SIZE MUST exist. @SIZE attribute value MUST be equal to the file size in bytes
Rules
-
Rule ID: 1
Descripton: The MUST exist a SIZE-attribute in the file-element. This is one of the cases where many files can have a missing attribute. The validation tool should show the number of occurences with the possibility to get a list of the occurences
ERROR: There MUST exist a SIZE-attribute in the file-element (so that the size of the referenced file can be recorded)
Packages:
file_missing_SIZE_attribute
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.98s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.89s True E-ARK Python Validator v1.1.3 1 invalid 0.37s 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.90s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.82s False E-ARK Python Validator v1.1.3 0 invalid 0.40s False -
Rule ID: 2
Descripton: There should be a check if the information of size of the file is correct. This is one of the cases where many files can have a wrong documentation. The validation tool should show the number of occurences with the possibility to get a list of the occurences
ERROR: The size of the file is not the size that is given in the SIZE-attribute
Packages:
file_wrong_SIZE
Expected result: invalid
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 3.00s False E-ARK Python Validator v1.1.3 0 invalid 0.40s 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.90s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.82s False E-ARK Python Validator v1.1.3 0 invalid 0.40s False