1 | <?xml version="1.0"?>
|
---|
2 | <!--
|
---|
3 | *
|
---|
4 | * This file is part of INIshell.
|
---|
5 | *
|
---|
6 | * INIshell is free software: you can redistribute it and/or modify
|
---|
7 | * it under the terms of the GNU General Public License as published by
|
---|
8 | * the Free Software Foundation, either version 3 of the License, or
|
---|
9 | * (at your option) any later version.
|
---|
10 | *
|
---|
11 | * INIshell is distributed in the hope that it will be useful,
|
---|
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
14 | * GNU General Public License for more details.
|
---|
15 | *
|
---|
16 | * You should have received a copy of the GNU General Public License
|
---|
17 | * along with INIshell. If not, see <http://www.gnu.org/licenses/>.
|
---|
18 | *
|
---|
19 | * -->
|
---|
20 | <xsd:schema version="1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
---|
21 | <xsd:element name="inishell_config" type="general" />
|
---|
22 |
|
---|
23 | <xsd:complexType name="general">
|
---|
24 | <xsd:choice maxOccurs="unbounded">
|
---|
25 | <xsd:element name="parameter" type="parametertype" />
|
---|
26 | <xsd:element name="parametergroup" type="pargroup" />
|
---|
27 | <xsd:element name="include" type="pathonly" />
|
---|
28 | <xsd:element name="frame" type="framegroup" />
|
---|
29 | </xsd:choice>
|
---|
30 | <xsd:attribute name="application" />
|
---|
31 | </xsd:complexType>
|
---|
32 |
|
---|
33 | <xsd:complexType name="framegroup">
|
---|
34 | <xsd:choice minOccurs="1" maxOccurs="unbounded">
|
---|
35 | <xsd:element name="parameter" type="parametertype" />
|
---|
36 | <xsd:element name="reference" type="nameonly" />
|
---|
37 | <xsd:element name="section" type="nameonly"/>
|
---|
38 | </xsd:choice>
|
---|
39 | <xsd:attribute name="key" />
|
---|
40 | <xsd:attribute name="label" />
|
---|
41 | </xsd:complexType>
|
---|
42 |
|
---|
43 | <xsd:complexType name="parametertype">
|
---|
44 | <xsd:complexContent>
|
---|
45 | <xsd:extension base="parbasetype">
|
---|
46 | <xsd:attribute name="key" type="xsd:string" use="required"/>
|
---|
47 | <xsd:attribute name="default" type="xsd:string" />
|
---|
48 | <xsd:attribute name="counter" type="xsd:integer" />
|
---|
49 | </xsd:extension>
|
---|
50 | </xsd:complexContent>
|
---|
51 | </xsd:complexType>
|
---|
52 |
|
---|
53 | <xsd:complexType name="nameonly">
|
---|
54 | <xsd:attribute name="name" />
|
---|
55 | </xsd:complexType>
|
---|
56 |
|
---|
57 | <xsd:complexType name="optionvalue">
|
---|
58 | <xsd:attribute name="value" />
|
---|
59 | </xsd:complexType>
|
---|
60 |
|
---|
61 | <xsd:complexType name="pathonly">
|
---|
62 | <xsd:attribute name="path" />
|
---|
63 | </xsd:complexType>
|
---|
64 |
|
---|
65 | <xsd:complexType name="pargroup">
|
---|
66 | <xsd:choice minOccurs="1" maxOccurs="unbounded">
|
---|
67 | <xsd:element name="parameter" type="parametertype" />
|
---|
68 | <xsd:element name="reference" type="nameonly" />
|
---|
69 | <xsd:element name="option" type="optionvalue" />
|
---|
70 | <xsd:element name="frame" type="framegroup" />
|
---|
71 | </xsd:choice>
|
---|
72 | <xsd:attribute name="name" />
|
---|
73 | </xsd:complexType>
|
---|
74 |
|
---|
75 | <xsd:complexType name="parbasetype">
|
---|
76 | <xsd:sequence>
|
---|
77 | <xsd:sequence minOccurs="0" maxOccurs="unbounded">
|
---|
78 | <xsd:element name="section" type="nameonly"/>
|
---|
79 | </xsd:sequence>
|
---|
80 | <xsd:sequence minOccurs="0" maxOccurs="unbounded">
|
---|
81 | <xsd:element name="replace" type="nameonly"/>
|
---|
82 | </xsd:sequence>
|
---|
83 | <xsd:sequence minOccurs="0" maxOccurs="unbounded">
|
---|
84 | <xsd:element name="parameter" type="parametertype" />
|
---|
85 | </xsd:sequence>
|
---|
86 | <xsd:choice minOccurs="0" maxOccurs="unbounded">
|
---|
87 | <xsd:element name="option" minOccurs="0">
|
---|
88 | <xsd:complexType>
|
---|
89 | <xsd:complexContent>
|
---|
90 | <xsd:extension base="parbasetype">
|
---|
91 | <xsd:attribute name="value" type="xsd:string" use="required" />
|
---|
92 | <xsd:attribute name="label" type="xsd:string" use="optional" />
|
---|
93 | <xsd:attribute name="default" type="xsd:boolean" use="optional"/>
|
---|
94 | </xsd:extension>
|
---|
95 | </xsd:complexContent>
|
---|
96 | </xsd:complexType>
|
---|
97 | </xsd:element>
|
---|
98 | </xsd:choice>
|
---|
99 | <xsd:sequence minOccurs="0" maxOccurs="unbounded">
|
---|
100 | <xsd:element name="reference" type="nameonly" />
|
---|
101 | </xsd:sequence>
|
---|
102 | <xsd:sequence minOccurs="0" maxOccurs="unbounded">
|
---|
103 | <xsd:element name="help" type="helptype"/>
|
---|
104 | </xsd:sequence>
|
---|
105 | </xsd:sequence>
|
---|
106 |
|
---|
107 | <xsd:attribute name="type" use="required">
|
---|
108 | <xsd:simpleType>
|
---|
109 | <xsd:restriction base="xsd:string">
|
---|
110 | <xsd:enumeration value="integer" />
|
---|
111 | <xsd:enumeration value="integer+" />
|
---|
112 | <xsd:enumeration value="decimal" />
|
---|
113 | <xsd:enumeration value="path" />
|
---|
114 | <xsd:enumeration value="file" />
|
---|
115 | <xsd:enumeration value="choice" />
|
---|
116 | <xsd:enumeration value="alternative" />
|
---|
117 | <xsd:enumeration value="dropdown" />
|
---|
118 | <xsd:enumeration value="string" />
|
---|
119 | <xsd:enumeration value="combination" />
|
---|
120 | <xsd:enumeration value="selector" />
|
---|
121 | </xsd:restriction>
|
---|
122 | </xsd:simpleType>
|
---|
123 | </xsd:attribute>
|
---|
124 |
|
---|
125 | <xsd:attribute name="maximum" type="xsd:integer"/>
|
---|
126 | <xsd:attribute name="minimum" type="xsd:integer"/>
|
---|
127 | <xsd:attribute name="template" type="xsd:boolean" default="false" use="optional" />
|
---|
128 | <xsd:attribute name="optional" type="xsd:boolean" default="true" />
|
---|
129 | </xsd:complexType>
|
---|
130 |
|
---|
131 | <xsd:complexType name="needstype">
|
---|
132 | <xsd:attribute name="type" type="xsd:string" use="required" />
|
---|
133 | <xsd:attribute name="name" type="xsd:string" use="required" />
|
---|
134 |
|
---|
135 | <xsd:attribute name="value" />
|
---|
136 | <xsd:attribute name="optional" type="xsd:boolean" />
|
---|
137 | <xsd:attribute name="minoccur" type="xsd:integer" />
|
---|
138 | <xsd:attribute name="maxoccur" type="xsd:string" />
|
---|
139 | </xsd:complexType>
|
---|
140 |
|
---|
141 | <xsd:complexType name="baseType">
|
---|
142 | <xsd:sequence minOccurs="0" maxOccurs="1">
|
---|
143 | <xsd:element name="help" type="helptype" />
|
---|
144 | </xsd:sequence>
|
---|
145 | <xsd:attribute name="key" type="xsd:string" use="required" />
|
---|
146 | </xsd:complexType>
|
---|
147 |
|
---|
148 | <xsd:complexType name="helptype" mixed="true">
|
---|
149 | <xsd:choice minOccurs="0" maxOccurs="unbounded">
|
---|
150 | <xsd:element name="section" type="nameonly" />
|
---|
151 | <xsd:element name="replace" type="nameonly" />
|
---|
152 | </xsd:choice>
|
---|
153 | </xsd:complexType>
|
---|
154 | </xsd:schema>
|
---|