Commit 4431ff2b authored by David Maus's avatar David Maus
Browse files

Grammatik für Konfiguration der OPAC-Anbindung

parent 77ace6bb
...@@ -11,7 +11,11 @@ SAXON = java -jar lib/saxon9he.jar ...@@ -11,7 +11,11 @@ SAXON = java -jar lib/saxon9he.jar
%.sch: %.rng %.sch: %.rng
$(SAXON) -xsl:lib/rngsch.xsl -o:$@ $< $(SAXON) -xsl:lib/rngsch.xsl -o:$@ $<
all: src/ruleset.xsd src/ruleset.rng src/ruleset.sch test all: ruleset import test
import: src/import.xsd src/import.rng
ruleset: src/ruleset.xsd src/ruleset.rng src/ruleset.sch
.PHONY: clean .PHONY: clean
clean: clean:
......
# -*- mode: rnc; -*-
#
# RelaxNG Schema für Kitido.Production Importkonfiguration
#
# Author: David Maus <maus@hab.de>
#
namespace s = "http://purl.oclc.org/dsdl/schematron"
start = opacCatalogues
opacCatalogues =
element opacCatalogues {
doctypes
& catalogue+
}
doctypes =
element doctypes {
type+
}
catalogue =
element catalogue {
attribute title { text }
& config
& searchFields
& resolve*
}
config =
element config {
attribute address { text }
& attribute database { text }
& attribute description { text }
& attribute port { xsd:integer }
& attribute ucnf { text }?
& empty
}
searchFields =
element searchFields {
searchField+
}
searchField =
element searchField {
attribute label { text }
& attribute value { xsd:integer }
}
resolve =
element resolve {
attribute tag { text }
& attribute subtag { text }
& map
}
map =
element map {
attribute tag { text },
attribute subtag { text },
attribute asSubtag { text }
}
type =
element type {
attribute isContainedWork { xsd:boolean }
& attribute isMultiVolume { xsd:boolean }
& attribute isPeriodical { xsd:boolean }
& attribute isNewspaper { xsd:boolean }
& attribute rulesetType { xsd:NMTOKEN }
& attribute tifHeaderType { text }
& attribute title { text }
& label*
& mapping+
}
label =
element label {
attribute language { xsd:language },
text
}
mapping =
element mapping {
text
}
\ No newline at end of file
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