Commit a70f0ae2 authored by David Maus's avatar David Maus
Browse files

Regelsatz: Fehler, wenn Metadatum nicht exportiert

parent 986bcded
......@@ -18,6 +18,16 @@ Preferences =
}
MetadataTypeDef =
[
s:pattern [
s:rule [
context = "metadata[parent::DocStrctType]" s:assert [
test = "/Preferences/METS/Metadata/InternalName = ."
"Das Metadatum '" s:value-of [ select = "." ] "' wird nicht exportiert."
]
]
]
]
element MetadataType {
attribute type { "person" | "identifier" }?,
(
......
......@@ -32,6 +32,11 @@
<DocStrctType>
<metadata>is-defined</metadata>
</DocStrctType>
<METS>
<Metadata>
<InternalName>is-defined</InternalName>
</Metadata>
</METS>
</Preferences>
</context>
<expect-not-assert/>
......@@ -42,6 +47,24 @@
<DocStrctType>
<metadata>is-not-defined</metadata>
</DocStrctType>
<METS>
<Metadata>
<InternalName>is-defined</InternalName>
</Metadata>
</METS>
</Preferences>
</context>
<expect-assert/>
</scenario>
<scenario label="Metadatum wird nicht exportiert">
<context>
<Preferences xmlns="">
<MetadataType>
<Name>is-defined</Name>
</MetadataType>
<DocStrctType>
<metadata>is-not-defined</metadata>
</DocStrctType>
</Preferences>
</context>
<expect-assert/>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment