Implement new URN solution
e.g.:
<idno rend="URN;urn:nbn:de:101:1-2018091106130993438235"
type="URL">http://nbn-resolving.de/urn:nbn:de:101:1-2018091106130993438235</idno>
see #24
diff --git a/test/test-xml.sh b/test/test-xml.sh
index 32333d7..d2b4b0f 100755
--- a/test/test-xml.sh
+++ b/test/test-xml.sh
@@ -47,8 +47,8 @@
observed=$(xmlstarlet sel --net -t -v "count(/idsCorpus/idsDoc/idsText/idsHeader/fileDesc/publicationStmt/idno[@type='URN'])" target/dnb18.i5.xml)
assert_eq "$observed" "$min_expected" "exvery text has one idno element of type URN"
-observed=$(xmlstarlet sel --net -t -v "count(/idsCorpus/idsDoc/idsText/idsHeader/fileDesc/publicationStmt/idno[@type='URN' and @rend='URN'])" target/dnb18.i5.xml)
-assert_eq "$observed" "$min_expected" "every idno element of type URN also has attribute rend='URN'"
+observed=$(xmlstarlet sel --net -t -v "count(/idsCorpus/idsDoc/idsText/idsHeader/fileDesc/publicationStmt/idno[@type='URL' and starts-with(@rend, 'URN;urn:nbn:de:')])" target/dnb18.i5.xml)
+assert_eq "$observed" "$min_expected" "for every idno element of type URN, there is also an URL element with @rend starting with 'URN;urn:nbn:de:'"
exit_with_test_summary