Test Case CSIP26
CSIP26
Testable: TRUE Schema Valid: Valid Description: Specifies the IANA mime type for the linked file. Requires two rules and at least two corpus packages: Rule for the existence of the attribute MIMETYPE for element dmdSec/mdRef. ERROR if it does not exists Rule for the value of the attribute MIMETYPE for element dmdSec/mdRef. ERROR if it is not on the list. How do we handle lists of valid values? Do we create a valid package for each valid value? And one invalid package for an invalid value? Are we supposed to check against IANA? http://www.iana.org/assignments/media-types/media-types.xhtml
Rules
-
Rule ID: 1
Descripton: Tests whether MIMETYPE-attribute exists in METS
ERROR: The element mets/dmdSec/mdRef in METS.xml does not have a MIMETYPE-attribute. It MUST be there according to CSIP.
Packages:
IP_18000_CSIP26_1
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.85s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.12s True E-ARK Python Validator v1.1.3 0 invalid 0.37s True -
Rule ID: 2
Descripton: Tests whether MIMETYPE-attribute has a value
ERROR: The element mets/dmdSec/mdRef in METS.xml has a MIMETYPE-attribute with no value. It SHOULD be there.
Packages:
IP_18000_CSIP26_2
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.01s False E-ARK Python Validator v1.1.3 0 invalid 0.37s True -
Rule ID: 3
Descripton: Tests whether MIMETYPE-attribute has a correct value
ERROR: The element mets/dmdSec/mdRef in METS.xml has a MIMETYPE-attribute which it not on the IANA list. See http://www.iana.org/assignments/media-types/media-types.xhtml for the list of valid MIMETYPES
Packages:
IP_18000_CSIP26_3
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.85s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.01s False E-ARK Python Validator v1.1.3 0 invalid 0.38s True