]> git.evergreen-ils.org Git - OpenSRF.git/blob - examples/srfsh_config.xsd
added support for multi-threaded client interactions. much like the java lib, each...
[OpenSRF.git] / examples / srfsh_config.xsd
1 <?xml version="1.0" encoding="UTF-8" ?>
2
3 <!--
4
5 Copyright (C) 2007 Laurentian University
6 Dan Scott <dscott@laurentian.ca>
7
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 as published by the Free Software Foundation; either version 2
11 of the License, or (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
21
22 -->
23
24 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
25
26 <!-- define types -->
27 <xs:simpleType name="loglevelType">
28  <xs:restriction base="xs:positiveInteger">
29   <xs:maxInclusive value="4"/>
30  </xs:restriction>
31 </xs:simpleType>
32
33 <xs:simpleType name="portType">
34  <xs:restriction base="xs:positiveInteger">
35   <xs:maxInclusive value="65535"/>
36  </xs:restriction>
37 </xs:simpleType>
38
39
40 <!-- define simple elements -->
41 <xs:element name="router_name" type="xs:string"/>
42 <xs:element name="domain" type="xs:string"/>
43 <xs:element name="username" type="xs:string"/>
44 <xs:element name="passwd" type="xs:string"/>
45 <xs:element name="port" type="portType"/>
46 <xs:element name="logfile" type="xs:string"/>
47 <xs:element name="loglevel" type="loglevelType"/>
48
49 <!-- group type -->
50 <xs:group name="srfshElements">
51  <xs:all>
52   <xs:element ref="router_name"/>
53   <xs:element ref="domains"/>
54   <xs:element ref="username"/>
55   <xs:element ref="passwd"/>
56   <xs:element ref="port"/>
57   <xs:element ref="logfile"/>
58   <xs:element ref="loglevel"/>
59  </xs:all>
60 </xs:group>
61
62 <!-- complex elements -->
63 <xs:element name="domains">
64  <xs:complexType>
65   <xs:sequence>
66    <xs:element ref="domain" minOccurs="1" maxOccurs="unbounded"/>
67   </xs:sequence>
68  </xs:complexType>
69 </xs:element>
70
71 <xs:element name="srfsh">
72  <xs:complexType>
73   <xs:group ref="srfshElements"/>
74  </xs:complexType>
75 </xs:element>
76
77 </xs:schema>