From aabef4b01f626ff939a5ff36646747f36862cb13 Mon Sep 17 00:00:00 2001 From: David Maus <maus@hab.de> Date: Fri, 16 Feb 2018 10:41:01 +0100 Subject: [PATCH] =?UTF-8?q?Schema=20f=C3=BCr=20Kitodo.Production=20METS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/schema/kitodo.sch | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/schema/kitodo.sch diff --git a/src/schema/kitodo.sch b/src/schema/kitodo.sch new file mode 100644 index 0000000..11064ee --- /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> -- GitLab