diff --git a/src/schema/kitodo.sch b/src/schema/kitodo.sch new file mode 100644 index 0000000000000000000000000000000000000000..11064ee59424d727131f65c537206e971545528d --- /dev/null +++ b/src/schema/kitodo.sch @@ -0,0 +1,10 @@ +<schema xmlns="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2"> + <ns uri="http://www.loc.gov/METS/" prefix="mets"/> + <pattern> + <rule context="mets:mets"> + <assert test="count(mets:fileSec/mets:fileGrp) eq 1 and mets:fileSec/mets:fileGrp/@USE = 'DEFAULT'"> + Die von Kitodo.Production erstellte METS-Datei muss genau eine fileGrp USE=DEFAULT enthalten. + </assert> + </rule> + </pattern> +</schema>