Version 2.0.59
[idzebra-moved-to-github.git] / etc / gfs-config.rnc
1 namespace explain = "http://explain.z3950.org/dtd/2.0/"
2 namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0"
3
4 yazgfs = element yazgfs { attlist.yazgfs, listen*, server+ }
5 attlist.yazgfs &= empty
6 listen = element listen { attlist.listen, text }
7 attlist.listen &= attribute id { text }?
8 server =
9   element server {
10     attlist.server, host?, directory?, config?, cql2rpn?, explain?
11   }
12 attlist.server &=
13   attribute id { text }?,
14   attribute listenref { text }?
15 host = element host { attlist.host, text }
16 attlist.host &= empty
17 directory = element directory { attlist.directory, text }
18 attlist.directory &= empty
19 config = element config { attlist.config, text }
20 attlist.config &= empty
21 cql2rpn = element cql2rpn { attlist.cql2rpn, text }
22 attlist.cql2rpn &= empty
23 # It's a shame that we have to include a partial ZeeRex DTD here
24 explain = element explain:explain { attlist.explain, serverInfo? }
25 attlist.explain &=
26   [ a:defaultValue = "false" ]
27   attribute authoritative { "true" | "false" }?,
28   attribute id { text }?
29 serverInfo =
30   element explain:serverInfo { attlist.serverInfo, explainHost, port, database }
31 attlist.serverInfo &= empty
32 explainHost = element explain:host { attlist.explainHost, text }
33 attlist.explainHost &= empty
34 port = element explain:port { attlist.port, text }
35 attlist.port &= empty
36 database = element explain:database { attlist.database, text }
37 attlist.database &= empty
38 start = yazgfs