baseTypes.xsd
  1 <?xml version="1.0" encoding="UTF-8"?>
  2 <!-- edited with XMLSpy v2006 rel. 3 sp1 (http://www.altova.com) by Vaclav Lipert (Siemens Business Services spol. s r.o.) -->
  3 <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://schemas.cssz.cz/baseTypes" targetNamespace="http://schemas.cssz.cz/baseTypes" elementFormDefault="qualified">
  4 	<annotation>
  5 		<documentation>
  6                         Autor: Václav Lipert Datum: 2009-05-26, úpravy 3.3.2010.
  7                         Upraveno 25.1.2013, Petr Obořil (Asseco Central Europe, a.s.), v regulárních výrazech byl přidán znak '\' před '-]'.
  8                 </documentation>
  9 	</annotation>
 10 	<!-- ZAKLADNI DATOVE TYPY -->
 11 	<simpleType name="simpleAType">
 12 		<annotation>
 13 			<documentation>Typ A - Znaková množina: alfaznaky (A - Z, a-z) + ŠŚŤŽŹšśťžźŁĄŞŻłąşĽľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőöřůúűüýţ</documentation>
 14 		</annotation>
 15 		<restriction base="string">
 16 			<pattern value="([A-Za-zŠŚŤŽŹšśťžźŁĄŞŻłąşĽľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőöřůúűüýţ\p{Zs}])*"/>
 17 		</restriction>
 18 	</simpleType>
 19 	<simpleType name="simpleL2Type">
 20 		<annotation>
 21 			<documentation>vsechny znaky mimo ridicich znaku XML</documentation>
 22 		</annotation>
 23 		<restriction base="string">
 24 			<pattern value=".*"/>
 25 		</restriction>
 26 	</simpleType>
 27 	<simpleType name="simpleZLType">
 28 		<annotation>
 29 			<documentation>Typ ZL - Znaková množina: znaménka: pomlčka(-), čárka (,), tečka(.), plus(+) a znak jednoduchý apostrof (‘)</documentation>
 30 		</annotation>
 31 		<restriction base="string">
 32 			<pattern value="([,'\.\+\-])*"/>
 33 		</restriction>
 34 	</simpleType>
 35 	<simpleType name="simpleZXType">
 36 		<annotation>
 37 			<documentation>Typ ZX - Znakova mnozina: znaménka: pomlčka(-), čárka (,), tečka(.), znak jednoduchý apostrof (‘)</documentation>
 38 		</annotation>
 39 		<restriction base="string">
 40 			<pattern value="([,'\.\-])*"/>
 41 		</restriction>
 42 	</simpleType>
 43 	<simpleType name="simpleZZType">
 44 		<annotation>
 45 			<documentation>Typ ZZ - Znaková množina: znaménka: pomlčka(-), čárka (,), tečka(.), plus(+), lomítko (/), zpětné lomítko (\) a znak jednoduchý apostrof (‘)</documentation>
 46 		</annotation>
 47 		<restriction base="string">
 48 			<pattern value="([,\.\+/\\'\-])*"/>
 49 		</restriction>
 50 	</simpleType>
 51 	<!-- zakladni typy - cisla -->
 52 	<simpleType name="simpleNType">
 53 		<annotation>
 54 			<documentation>Typ N - Znaková množina: číslo - znaky 0-9, nesmí začínat nulou</documentation>
 55 		</annotation>
 56 		<restriction base="nonNegativeInteger">
 57 			<pattern value="[1-9].*|0"/>
 58 		</restriction>
 59 	</simpleType>
 60 	<simpleType name="simpleNType_string">
 61 		<annotation>
 62 			<documentation>Typ N - Znaková množina: číslo - znaky 0-9, nesmí začínat nulou</documentation>
 63 		</annotation>
 64 		<restriction base="string">
 65 			<pattern value="[1-9][0-9]*"/>
 66 		</restriction>
 67 	</simpleType>
 68 	<simpleType name="simpleNNType">
 69 		<annotation>
 70 			<documentation>Typ NN - Znaková množina: číslo - znaky 0-9, může začínat nulou</documentation>
 71 		</annotation>
 72 		<restriction base="string">
 73 			<pattern value="[0-9]*"/>
 74 		</restriction>
 75 	</simpleType>
 76 	<simpleType name="simpleNDType">
 77 		<annotation>
 78 			<documentation>Typ ND - Znaková množina: číslo - znaky 0-9, může obsahovat znaménko jako první znak a des. tečku (nebo des. čárku)</documentation>
 79 		</annotation>
 80 		<restriction base="string">
 81 			<pattern value="[\+\-]?\d*[,\.]?\d*"/>
 82 		</restriction>
 83 		<!-- Trac: #1494 -->
 84 	</simpleType>
 85 	<!-- zakladni typy - datum -->
 86 	<simpleType name="simpleDTType">
 87 		<annotation>
 88 			<documentation>
 89         Typ DT - Znaková množina: datum a čas ve formátu unicode yyyy-mm-ddThh-mm-ss
 90         Pro zpetnou kompatibilitu je zadana i podpora formatu yyyy-mm-dd hh:mm:ss.nnn
 91       </documentation>
 92 		</annotation>
 93 		<restriction base="string">
 94 			<pattern value="([1-2][0-9]{3}-(([1][0-2])|([0][0-9]))-(([0-2][0-9])|([3][0-1]))T(([01][0-9])|([2][0-3]))-([0-5][0-9])-([0-5][0-9]))|([1-2][0-9]{3}-(([1][0-2])|([0][0-9]))-(([0-2][0-9])|([3][0-1])) (([01][0-9])|([2][0-3])):([0-5][0-9]):([0-5][0-9]).[0-9]{3})"/>
 95 		</restriction>
 96 	</simpleType>
 97 	<simpleType name="simpleDType">
 98 		<restriction base="date"/>
 99 	</simpleType>
100 	<simpleType name="simpleLType">
101 		<annotation>
102 			<documentation>Logicka hodnota A/N + #NEUVE + ""</documentation>
103 		</annotation>
104 		<restriction base="string">
105 			<enumeration value="A"/>
106 			<enumeration value="N"/>
107 			<enumeration value=""/>
108 			<enumeration value="#NEUVE"/>
109 		</restriction>
110 	</simpleType>
111 	<simpleType name="simpleLSType">
112 		<annotation>
113 			<documentation>Logicka hodnota A/N</documentation>
114 		</annotation>
115 		<restriction base="string">
116 			<enumeration value="A"/>
117 			<enumeration value="N"/>
118 		</restriction>
119 	</simpleType>
120 	<!-- hodnoty NEUVE -->
121 	<!-- kombinovane typy -->
122 	<!-- 2 typy -->
123 	<simpleType name="simpleA_NType">
124 		<restriction base="string">
125 			<pattern value="([0-9A-Za-zŠŚŤŽŹšśťžźŁĄŞŻłąşĽľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőöřůúűüýţ\p{Zs}])*"/>
126 		</restriction>
127 	</simpleType>
128 	<simpleType name="simpleA_NNType">
129 		<restriction base="string">
130 			<pattern value="([0-9A-Za-zŠŚŤŽŹšśťžźŁĄŞŻłąşĽľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőöřůúűüýţ\p{Zs}])*"/>
131 		</restriction>
132 	</simpleType>
133 	<simpleType name="simpleA_ZZType">
134 		<restriction base="string">
135 			<pattern value="([A-Za-zŠŚŤŽŹšśťžźŁĄŞŻłąşĽľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőöřůúűüýţ\p{Zs},\.\+/\\'\-])*"/>
136 		</restriction>
137 	</simpleType>
138 	<simpleType name="simpleA_ZXType">
139 		<restriction base="string">
140 			<pattern value="([A-Za-zŠŚŤŽŹšśťžźŁĄŞŻłąşĽľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőöřůúűüýţ\p{Zs},'\.\-])*"/>
141 		</restriction>
142 	</simpleType>
143 	<simpleType name="simpleN_ZXType">
144 		<restriction base="string">
145 			<pattern value="([0-9,'\.\-])*|0"/>
146 		</restriction>
147 	</simpleType>
148 	<simpleType name="simpleNN_ZLType">
149 		<restriction base="string">
150 			<pattern value="[0-9,'\.\+\-]*"/>
151 		</restriction>
152 	</simpleType>
153 	<!-- 3 typy -->
154 	<simpleType name="simpleA_N_ZZType">
155 		<restriction base="string">
156 			<pattern value="([0-9A-Za-zŠŚŤŽŹšśťžźŁĄŞŻłąşĽľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőöřůúűüýţ\p{Zs},\.\+/\\'\-])*|0"/>
157 		</restriction>
158 	</simpleType>
159 	<simpleType name="simpleA_N_ZXType">
160 		<restriction base="string">
161 			<pattern value="([0-9A-Za-zŠŚŤŽŹšśťžźŁĄŞŻłąşĽľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőöřůúűüýţ\p{Zs},'\.\-])*|0"/>
162 		</restriction>
163 	</simpleType>
164 	<simpleType name="simpleA_NN_ZXType">
165 		<restriction base="string">
166 			<pattern value="([0-9A-Za-zŠŚŤŽŹšśťžźŁĄŞŻłąşĽľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőöřůúűüýţ\p{Zs},'\.\-])*"/>
167 		</restriction>
168 	</simpleType>
169 	<simpleType name="simpleA_NN_ZZType">
170 		<restriction base="string">
171 			<pattern value="([0-9A-Za-zŠŚŤŽŹšśťžźŁĄŞŻłąşĽľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőöřůúűüýţ\p{Zs},\.\+/\\'\-])*"/>
172 		</restriction>
173 	</simpleType>
174 	<simpleType name="simpleA_NN_ZLType">
175 		<restriction base="string">
176 			<pattern value="([0-9A-Za-zŠŚŤŽŹšśťžźŁĄŞŻłąşĽľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőöřůúűüýţ\p{Zs},'\.\+\-])*|0"/>
177 		</restriction>
178 	</simpleType>
179 	<simpleType name="simpleA_ZX_SP_Type">
180 		<restriction base="string">
181 			<pattern value="(([A-Za-zŠŚŤŽŹšśťžźŁĄŞŻłąşĽľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőöřůúűüýţ,\.\+/\\'\-][0-9A-Za-zŠŚŤŽŹšśťžźŁĄŞŻłąşĽľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőöřůúűüýţ\s,\.\+/\\'\-]+[0-9A-Za-zŠŚŤŽŹšśťžźŁĄŞŻłąşĽľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőöřůúűüýţ,\.\+/\\'\-])|([0-9A-Za-zŠŚŤŽŹšśťžźŁĄŞŻłąşĽľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőöřůúűüýţ,\.\+/\\'\-])*)"/>
182 		</restriction>
183 	</simpleType>
184 	<!-- 4 TYPY -->
185 	<simpleType name="simpleA_NN_ZX_SP_Type">
186 		<restriction base="string">
187 			<pattern value="(([0-9A-Za-zŠŚŤŽŹšśťžźŁĄŞŻłąşĽľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőöřůúűüýţ,\.\+/\\'\-][0-9A-Za-zŠŚŤŽŹšśťžźŁĄŞŻłąşĽľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőöřůúűüýţ\s,\.\+/\\'\-]+[0-9A-Za-zŠŚŤŽŹšśťžźŁĄŞŻłąşĽľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőöřůúűüýţ,\.\+/\\'\-])|([0-9A-Za-zŠŚŤŽŹšśťžźŁĄŞŻłąşĽľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőöřůúűüýţ,\.\+/\\'\-])*)"/>
188 		</restriction>
189 	</simpleType>
190 	<simpleType name="simpleA_NN_ZZ_SP_Type">
191 		<restriction base="string">
192 			<pattern value="(([0-9A-Za-zŠŚŤŽŹšśťžźŁĄŞŻłąşĽľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőöřůúűüýţ,\.\+/\\'\-][0-9A-Za-zŠŚŤŽŹšśťžźŁĄŞŻłąşĽľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőöřůúűüýţ\s,\.\+/\\'\-]+[0-9A-Za-zŠŚŤŽŹšśťžźŁĄŞŻłąşĽľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőöřůúűüýţ,\.\+/\\'\-])|([0-9A-Za-zŠŚŤŽŹšśťžźŁĄŞŻłąşĽľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőöřůúűüýţ,\.\+/\\'\-])*)"/>
193 		</restriction>
194 	</simpleType>
195 	<!-- ZAKLADNI TYPY S ATRIBUTEM smaz -->
196 	<complexType name="AType" mixed="true">
197 		<simpleContent>
198 			<extension base="tns:simpleAType">
199 				<attribute name="smaz" type="boolean"/>
200 			</extension>
201 		</simpleContent>
202 	</complexType>
203 	<complexType name="L2Type">
204 		<simpleContent>
205 			<extension base="tns:simpleL2Type">
206 				<attribute name="smaz" type="boolean"/>
207 			</extension>
208 		</simpleContent>
209 	</complexType>
210 	<complexType name="NType">
211 		<simpleContent>
212 			<extension base="tns:simpleNType">
213 				<attribute name="smaz" type="boolean"/>
214 			</extension>
215 		</simpleContent>
216 	</complexType>
217 	<complexType name="ZXType">
218 		<simpleContent>
219 			<extension base="tns:simpleZXType">
220 				<attribute name="smaz" type="boolean"/>
221 			</extension>
222 		</simpleContent>
223 	</complexType>
224 	<complexType name="NNType">
225 		<simpleContent>
226 			<extension base="tns:simpleNNType">
227 				<attribute name="smaz" type="boolean"/>
228 			</extension>
229 		</simpleContent>
230 	</complexType>
231 	<complexType name="DType">
232 		<simpleContent>
233 			<extension base="tns:simpleDType">
234 				<attribute name="smaz" type="boolean"/>
235 			</extension>
236 		</simpleContent>
237 	</complexType>
238 	<!-- kombinovane typy s atributem smaz -->
239 	<!-- 2 typy -->
240 	<complexType name="A_NType">
241 		<simpleContent>
242 			<extension base="tns:simpleA_NType">
243 				<attribute name="smaz" type="boolean"/>
244 			</extension>
245 		</simpleContent>
246 	</complexType>
247 	<complexType name="A_NNType">
248 		<simpleContent>
249 			<extension base="tns:simpleA_NNType">
250 				<attribute name="smaz" type="boolean"/>
251 			</extension>
252 		</simpleContent>
253 	</complexType>
254 	<complexType name="A_ZXType">
255 		<simpleContent>
256 			<extension base="tns:simpleA_ZXType">
257 				<attribute name="smaz" type="boolean"/>
258 			</extension>
259 		</simpleContent>
260 	</complexType>
261 	<complexType name="A_ZZType">
262 		<simpleContent>
263 			<extension base="tns:simpleA_ZZType">
264 				<attribute name="smaz" type="boolean"/>
265 			</extension>
266 		</simpleContent>
267 	</complexType>
268 	<!-- 3 typy -->
269 	<complexType name="A_N_ZZType">
270 		<simpleContent>
271 			<extension base="tns:simpleA_N_ZZType">
272 				<attribute name="smaz" type="boolean"/>
273 			</extension>
274 		</simpleContent>
275 	</complexType>
276 	<complexType name="A_NN_ZZType">
277 		<simpleContent>
278 			<extension base="tns:simpleA_NN_ZZType">
279 				<attribute name="smaz" type="boolean"/>
280 			</extension>
281 		</simpleContent>
282 	</complexType>
283 	<complexType name="A_N_ZXType">
284 		<simpleContent>
285 			<extension base="tns:simpleA_N_ZXType">
286 				<attribute name="smaz" type="boolean"/>
287 			</extension>
288 		</simpleContent>
289 	</complexType>
290 	<complexType name="A_NN_ZLType">
291 		<simpleContent>
292 			<extension base="tns:simpleA_NN_ZLType">
293 				<attribute name="smaz" type="boolean"/>
294 			</extension>
295 		</simpleContent>
296 	</complexType>
297 </schema>