node-sped-nfe 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,598 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- PL_008 - 30/07/2013- NT 2013/005 -->
3
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:nfe="http://www.portalfiscal.inf.br/nfe" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
4
+ <xs:simpleType name="TCodUfIBGE">
5
+ <xs:annotation>
6
+ <xs:documentation>Tipo Código da UF da tabela do IBGE</xs:documentation>
7
+ </xs:annotation>
8
+ <xs:restriction base="xs:string">
9
+ <xs:whiteSpace value="preserve"/>
10
+ <xs:enumeration value="11"/>
11
+ <xs:enumeration value="12"/>
12
+ <xs:enumeration value="13"/>
13
+ <xs:enumeration value="14"/>
14
+ <xs:enumeration value="15"/>
15
+ <xs:enumeration value="16"/>
16
+ <xs:enumeration value="17"/>
17
+ <xs:enumeration value="21"/>
18
+ <xs:enumeration value="22"/>
19
+ <xs:enumeration value="23"/>
20
+ <xs:enumeration value="24"/>
21
+ <xs:enumeration value="25"/>
22
+ <xs:enumeration value="26"/>
23
+ <xs:enumeration value="27"/>
24
+ <xs:enumeration value="28"/>
25
+ <xs:enumeration value="29"/>
26
+ <xs:enumeration value="31"/>
27
+ <xs:enumeration value="32"/>
28
+ <xs:enumeration value="33"/>
29
+ <xs:enumeration value="35"/>
30
+ <xs:enumeration value="41"/>
31
+ <xs:enumeration value="42"/>
32
+ <xs:enumeration value="43"/>
33
+ <xs:enumeration value="50"/>
34
+ <xs:enumeration value="51"/>
35
+ <xs:enumeration value="52"/>
36
+ <xs:enumeration value="53"/>
37
+ </xs:restriction>
38
+ </xs:simpleType>
39
+ <xs:simpleType name="TCodMunIBGE">
40
+ <xs:annotation>
41
+ <xs:documentation>Tipo Código do Município da tabela do IBGE</xs:documentation>
42
+ </xs:annotation>
43
+ <xs:restriction base="xs:string">
44
+ <xs:whiteSpace value="preserve"/>
45
+ <xs:pattern value="[0-9]{7}"/>
46
+ </xs:restriction>
47
+ </xs:simpleType>
48
+ <xs:simpleType name="TChNFe">
49
+ <xs:annotation>
50
+ <xs:documentation>Tipo Chave da Nota Fiscal Eletrônica</xs:documentation>
51
+ </xs:annotation>
52
+ <xs:restriction base="xs:string">
53
+ <xs:whiteSpace value="preserve"/>
54
+ <xs:maxLength value="44"/>
55
+ <xs:pattern value="[0-9]{44}"/>
56
+ </xs:restriction>
57
+ </xs:simpleType>
58
+ <xs:simpleType name="TProt">
59
+ <xs:annotation>
60
+ <xs:documentation>Tipo Número do Protocolo de Status</xs:documentation>
61
+ </xs:annotation>
62
+ <xs:restriction base="xs:string">
63
+ <xs:whiteSpace value="preserve"/>
64
+ <xs:maxLength value="15"/>
65
+ <xs:pattern value="[0-9]{15}"/>
66
+ </xs:restriction>
67
+ </xs:simpleType>
68
+ <xs:simpleType name="TRec">
69
+ <xs:annotation>
70
+ <xs:documentation>Tipo Número do Recibo do envio de lote de NF-e</xs:documentation>
71
+ </xs:annotation>
72
+ <xs:restriction base="xs:string">
73
+ <xs:whiteSpace value="preserve"/>
74
+ <xs:maxLength value="15"/>
75
+ <xs:pattern value="[0-9]{15}"/>
76
+ </xs:restriction>
77
+ </xs:simpleType>
78
+ <xs:simpleType name="TStat">
79
+ <xs:annotation>
80
+ <xs:documentation>Tipo Código da Mensagem enviada</xs:documentation>
81
+ </xs:annotation>
82
+ <xs:restriction base="xs:string">
83
+ <xs:whiteSpace value="preserve"/>
84
+ <xs:maxLength value="3"/>
85
+ <xs:pattern value="[0-9]{3}"/>
86
+ </xs:restriction>
87
+ </xs:simpleType>
88
+ <xs:simpleType name="TCnpj">
89
+ <xs:annotation>
90
+ <xs:documentation>Tipo Número do CNPJ</xs:documentation>
91
+ </xs:annotation>
92
+ <xs:restriction base="xs:string">
93
+ <xs:whiteSpace value="preserve"/>
94
+ <xs:maxLength value="14"/>
95
+ <xs:pattern value="[0-9]{14}"/>
96
+ </xs:restriction>
97
+ </xs:simpleType>
98
+ <xs:simpleType name="TCnpjVar">
99
+ <xs:annotation>
100
+ <xs:documentation>Tipo Número do CNPJ tmanho varíavel (3-14)</xs:documentation>
101
+ </xs:annotation>
102
+ <xs:restriction base="xs:string">
103
+ <xs:whiteSpace value="preserve"/>
104
+ <xs:maxLength value="14"/>
105
+ <xs:pattern value="[0-9]{3,14}"/>
106
+ </xs:restriction>
107
+ </xs:simpleType>
108
+ <xs:simpleType name="TCnpjOpc">
109
+ <xs:annotation>
110
+ <xs:documentation>Tipo Número do CNPJ Opcional</xs:documentation>
111
+ </xs:annotation>
112
+ <xs:restriction base="xs:string">
113
+ <xs:whiteSpace value="preserve"/>
114
+ <xs:maxLength value="14"/>
115
+ <xs:pattern value="[0-9]{0}|[0-9]{14}"/>
116
+ </xs:restriction>
117
+ </xs:simpleType>
118
+ <xs:simpleType name="TCpf">
119
+ <xs:annotation>
120
+ <xs:documentation>Tipo Número do CPF</xs:documentation>
121
+ </xs:annotation>
122
+ <xs:restriction base="xs:string">
123
+ <xs:whiteSpace value="preserve"/>
124
+ <xs:maxLength value="11"/>
125
+ <xs:pattern value="[0-9]{11}"/>
126
+ </xs:restriction>
127
+ </xs:simpleType>
128
+ <xs:simpleType name="TCpfVar">
129
+ <xs:annotation>
130
+ <xs:documentation>Tipo Número do CPF de tamanho variável (3-11)</xs:documentation>
131
+ </xs:annotation>
132
+ <xs:restriction base="xs:string">
133
+ <xs:whiteSpace value="preserve"/>
134
+ <xs:maxLength value="11"/>
135
+ <xs:pattern value="[0-9]{3,11}"/>
136
+ </xs:restriction>
137
+ </xs:simpleType>
138
+ <xs:simpleType name="TDec_0104v">
139
+ <xs:annotation>
140
+ <xs:documentation>Tipo Decimal com até 1 dígitos inteiros, podendo ter de 1 até 4 decimais</xs:documentation>
141
+ </xs:annotation>
142
+ <xs:restriction base="xs:string">
143
+ <xs:whiteSpace value="preserve"/>
144
+ <xs:pattern value="0|0\.[0-9]{1,4}|[1-9]{1}(\.[0-9]{1,4})?"/>
145
+ </xs:restriction>
146
+ </xs:simpleType>
147
+ <xs:simpleType name="TDec_0204v">
148
+ <xs:annotation>
149
+ <xs:documentation>Tipo Decimal com até 2 dígitos inteiros, podendo ter de 1 até 4 decimais</xs:documentation>
150
+ </xs:annotation>
151
+ <xs:restriction base="xs:string">
152
+ <xs:whiteSpace value="preserve"/>
153
+ <xs:pattern value="0|0\.[0-9]{1,4}|[1-9]{1}[0-9]{0,1}(\.[0-9]{1,4})?"/>
154
+ </xs:restriction>
155
+ </xs:simpleType>
156
+ <xs:simpleType name="TDec_0302a04">
157
+ <xs:annotation>
158
+ <xs:documentation>Tipo Decimal com até 3 dígitos inteiros, podendo ter de 2 até 4 decimais</xs:documentation>
159
+ </xs:annotation>
160
+ <xs:restriction base="xs:string">
161
+ <xs:whiteSpace value="preserve"/>
162
+ <xs:pattern value="0|0\.[0-9]{2,4}|[1-9]{1}[0-9]{0,2}(\.[0-9]{2,4})?"/>
163
+ </xs:restriction>
164
+ </xs:simpleType>
165
+ <xs:simpleType name="TDec_0302a04Opc">
166
+ <xs:annotation>
167
+ <xs:documentation>Tipo Decimal com até 3 dígitos inteiros e 2 até 4 decimais. Utilizados em TAGs opcionais, não aceita valor zero.</xs:documentation>
168
+ </xs:annotation>
169
+ <xs:restriction base="xs:string">
170
+ <xs:whiteSpace value="preserve"/>
171
+ <xs:pattern value="0\.[0-9]{2,4}|[1-9]{1}[0-9]{0,2}(\.[0-9]{2,4})?"/>
172
+ </xs:restriction>
173
+ </xs:simpleType>
174
+ <xs:simpleType name="TDec_0302Max100">
175
+ <xs:annotation>
176
+ <xs:documentation>Tipo Decimal com 3 inteiros (no máximo 100), com 2 decimais</xs:documentation>
177
+ </xs:annotation>
178
+ <xs:restriction base="xs:string">
179
+ <xs:whiteSpace value="preserve"/>
180
+ <xs:pattern value="0(\.[0-9]{2})?|100(\.00)?|[1-9]{1}[0-9]{0,1}(\.[0-9]{2})?"/>
181
+ </xs:restriction>
182
+ </xs:simpleType>
183
+ <xs:simpleType name="TDec_0304Max100">
184
+ <xs:annotation>
185
+ <xs:documentation>Tipo Decimal com 3 inteiros (no máximo 100), com 4 decimais</xs:documentation>
186
+ </xs:annotation>
187
+ <xs:restriction base="xs:string">
188
+ <xs:whiteSpace value="preserve"/>
189
+ <xs:pattern value="0(\.[0-9]{4})?|100(\.00)?|[1-9]{1}[0-9]{0,1}(\.[0-9]{4})?"/>
190
+ </xs:restriction>
191
+ </xs:simpleType>
192
+ <xs:simpleType name="TDec_03v00a04Max100Opc">
193
+ <xs:annotation>
194
+ <xs:documentation>Tipo Decimal com 3 inteiros (no máximo 100), com 4 decimais, não aceita valor zero</xs:documentation>
195
+ </xs:annotation>
196
+ <xs:restriction base="xs:string">
197
+ <xs:whiteSpace value="preserve"/>
198
+ <xs:pattern value="0(\.[1-9][0-9]{0,3})|0(\.[0][1-9][0-9]{0,2})|0(\.[0][0][1-9][0-9]{0,1})|0(\.[0][0][0][1-9])|100(\.[0]{1,4})?|[1-9]{1}[0-9]{0,1}(\.[0-9]{1,4})?"/>
199
+ </xs:restriction>
200
+ </xs:simpleType>
201
+ <xs:simpleType name="TDec_0302a04Max100">
202
+ <xs:annotation>
203
+ <xs:documentation>Tipo Decimal com 3 inteiros (no máximo 100), com até 4 decimais</xs:documentation>
204
+ </xs:annotation>
205
+ <xs:restriction base="xs:string">
206
+ <xs:whiteSpace value="preserve"/>
207
+ <xs:pattern value="0(\.[0-9]{2,4})?|[1-9]{1}[0-9]{0,1}(\.[0-9]{2,4})?|100(\.0{2,4})?"/>
208
+ </xs:restriction>
209
+ </xs:simpleType>
210
+ <xs:simpleType name="TDec_0803v">
211
+ <xs:annotation>
212
+ <xs:documentation>Tipo Decimal com 8 inteiros, podendo ter de 1 até 3 decimais</xs:documentation>
213
+ </xs:annotation>
214
+ <xs:restriction base="xs:string">
215
+ <xs:whiteSpace value="preserve"/>
216
+ <xs:pattern value="0|0\.[0-9]{3}|[1-9]{1}[0-9]{0,7}(\.[0-9]{1,3})?"/>
217
+ </xs:restriction>
218
+ </xs:simpleType>
219
+ <xs:simpleType name="TDec_1104">
220
+ <xs:annotation>
221
+ <xs:documentation>Tipo Decimal com 11 inteiros, podendo ter 4 decimais</xs:documentation>
222
+ </xs:annotation>
223
+ <xs:restriction base="xs:string">
224
+ <xs:whiteSpace value="preserve"/>
225
+ <xs:pattern value="0|0\.[0-9]{4}|[1-9]{1}[0-9]{0,10}(\.[0-9]{4})?"/>
226
+ </xs:restriction>
227
+ </xs:simpleType>
228
+ <xs:simpleType name="TDec_1104v">
229
+ <xs:annotation>
230
+ <xs:documentation>Tipo Decimal com 11 inteiros, podendo ter de 1 até 4 decimais</xs:documentation>
231
+ </xs:annotation>
232
+ <xs:restriction base="xs:string">
233
+ <xs:whiteSpace value="preserve"/>
234
+ <xs:pattern value="0|0\.[0-9]{1,4}|[1-9]{1}[0-9]{0,10}|[1-9]{1}[0-9]{0,10}(\.[0-9]{1,4})?"/>
235
+ </xs:restriction>
236
+ </xs:simpleType>
237
+ <xs:simpleType name="TDec_1104Opc">
238
+ <xs:annotation>
239
+ <xs:documentation>Tipo Decimal com 11 inteiros, podendo ter 4 decimais (utilizado em tags opcionais)</xs:documentation>
240
+ </xs:annotation>
241
+ <xs:restriction base="xs:string">
242
+ <xs:whiteSpace value="preserve"/>
243
+ <xs:pattern value="0\.[1-9]{1}[0-9]{3}|0\.[0-9]{3}[1-9]{1}|0\.[0-9]{2}[1-9]{1}[0-9]{1}|0\.[0-9]{1}[1-9]{1}[0-9]{2}|[1-9]{1}[0-9]{0,10}(\.[0-9]{4})?"/>
244
+ </xs:restriction>
245
+ </xs:simpleType>
246
+ <xs:simpleType name="TDec_1110v">
247
+ <xs:annotation>
248
+ <xs:documentation>Tipo Decimal com 11 inteiros, podendo ter de 1 até 10 decimais</xs:documentation>
249
+ </xs:annotation>
250
+ <xs:restriction base="xs:string">
251
+ <xs:whiteSpace value="preserve"/>
252
+ <xs:pattern value="0|0\.[0-9]{1,10}|[1-9]{1}[0-9]{0,10}|[1-9]{1}[0-9]{0,10}(\.[0-9]{1,10})?"/>
253
+ </xs:restriction>
254
+ </xs:simpleType>
255
+ <xs:simpleType name="TDec_1203">
256
+ <xs:annotation>
257
+ <xs:documentation>Tipo Decimal com 12 inteiros, podendo ter 3 decimais</xs:documentation>
258
+ </xs:annotation>
259
+ <xs:restriction base="xs:string">
260
+ <xs:whiteSpace value="preserve"/>
261
+ <xs:pattern value="0|0\.[0-9]{3}|[1-9]{1}[0-9]{0,11}(\.[0-9]{3})?"/>
262
+ </xs:restriction>
263
+ </xs:simpleType>
264
+ <xs:simpleType name="TDec_1204">
265
+ <xs:annotation>
266
+ <xs:documentation>Tipo Decimal com 12 inteiros e 4 decimais</xs:documentation>
267
+ </xs:annotation>
268
+ <xs:restriction base="xs:string">
269
+ <xs:whiteSpace value="preserve"/>
270
+ <xs:pattern value="0|0\.[0-9]{1,4}|[1-9]{1}[0-9]{0,11}|[1-9]{1}[0-9]{0,11}(\.[0-9]{4})?"/>
271
+ </xs:restriction>
272
+ </xs:simpleType>
273
+ <xs:simpleType name="TDec_1204v">
274
+ <xs:annotation>
275
+ <xs:documentation>Tipo Decimal com 12 inteiros de 1 até 4 decimais</xs:documentation>
276
+ </xs:annotation>
277
+ <xs:restriction base="xs:string">
278
+ <xs:whiteSpace value="preserve"/>
279
+ <xs:pattern value="0|0\.[0-9]{1,4}|[1-9]{1}[0-9]{0,11}|[1-9]{1}[0-9]{0,11}(\.[0-9]{1,4})?"/>
280
+ </xs:restriction>
281
+ </xs:simpleType>
282
+ <xs:simpleType name="TDec_1204Opc">
283
+ <xs:annotation>
284
+ <xs:documentation>Tipo Decimal com 12 inteiros com 1 até 4 decimais</xs:documentation>
285
+ </xs:annotation>
286
+ <xs:restriction base="xs:string">
287
+ <xs:whiteSpace value="preserve"/>
288
+ <xs:pattern value="0\.[0-9]{1,4}|[1-9]{1}[0-9]{0,11}|[1-9]{1}[0-9]{0,11}(\.[0-9]{1,4})?"/>
289
+ </xs:restriction>
290
+ </xs:simpleType>
291
+ <xs:simpleType name="TDec_1204temperatura">
292
+ <xs:annotation>
293
+ <xs:documentation>Tipo Decimal com 12 inteiros, 1 a 4 decimais</xs:documentation>
294
+ </xs:annotation>
295
+ <xs:restriction base="xs:string">
296
+ <xs:whiteSpace value="preserve"/>
297
+ <xs:pattern value="0\.[1-9]{1}[0-9]{3}|0\.[0-9]{3}[1-9]{1}|0\.[0-9]{2}[1-9]{1}[0-9]{1}|0\.[0-9]{1}[1-9]{1}[0-9]{2}|[1-9]{1}[0-9]{0,11}(\.[0-9]{4})?"/>
298
+ </xs:restriction>
299
+ </xs:simpleType>
300
+ <xs:simpleType name="TDec_1302">
301
+ <xs:annotation>
302
+ <xs:documentation>Tipo Decimal com 15 dígitos, sendo 13 de corpo e 2 decimais</xs:documentation>
303
+ </xs:annotation>
304
+ <xs:restriction base="xs:string">
305
+ <xs:whiteSpace value="preserve"/>
306
+ <xs:pattern value="0|0\.[0-9]{2}|[1-9]{1}[0-9]{0,12}(\.[0-9]{2})?"/>
307
+ </xs:restriction>
308
+ </xs:simpleType>
309
+ <xs:simpleType name="TDec_1302Opc">
310
+ <xs:annotation>
311
+ <xs:documentation>Tipo Decimal com 15 dígitos, sendo 13 de corpo e 2 decimais, utilizado em tags opcionais</xs:documentation>
312
+ </xs:annotation>
313
+ <xs:restriction base="xs:string">
314
+ <xs:whiteSpace value="preserve"/>
315
+ <xs:pattern value="0\.[0-9]{1}[1-9]{1}|0\.[1-9]{1}[0-9]{1}|[1-9]{1}[0-9]{0,12}(\.[0-9]{2})?"/>
316
+ </xs:restriction>
317
+ </xs:simpleType>
318
+ <xs:simpleType name="TIeDest">
319
+ <xs:annotation>
320
+ <xs:documentation>Tipo Inscrição Estadual do Destinatário // alterado para aceitar vazio ou ISENTO - maio/2010 v2.0</xs:documentation>
321
+ </xs:annotation>
322
+ <xs:restriction base="xs:string">
323
+ <xs:whiteSpace value="preserve"/>
324
+ <xs:maxLength value="14"/>
325
+ <xs:pattern value="ISENTO|[0-9]{2,14}"/>
326
+ </xs:restriction>
327
+ </xs:simpleType>
328
+ <xs:simpleType name="TIeDestNaoIsento">
329
+ <xs:annotation>
330
+ <xs:documentation>Tipo Inscrição Estadual do Destinatário // alterado para aceitar vazio ou ISENTO - maio/2010 v2.0</xs:documentation>
331
+ </xs:annotation>
332
+ <xs:restriction base="xs:string">
333
+ <xs:whiteSpace value="preserve"/>
334
+ <xs:maxLength value="14"/>
335
+ <xs:pattern value="[0-9]{2,14}"/>
336
+ </xs:restriction>
337
+ </xs:simpleType>
338
+ <xs:simpleType name="TIeST">
339
+ <xs:annotation>
340
+ <xs:documentation>Tipo Inscrição Estadual do ST // acrescentado EM 24/10/08</xs:documentation>
341
+ </xs:annotation>
342
+ <xs:restriction base="xs:string">
343
+ <xs:whiteSpace value="preserve"/>
344
+ <xs:maxLength value="14"/>
345
+ <xs:pattern value="[0-9]{2,14}"/>
346
+ </xs:restriction>
347
+ </xs:simpleType>
348
+ <xs:simpleType name="TIe">
349
+ <xs:annotation>
350
+ <xs:documentation>Tipo Inscrição Estadual do Emitente // alterado EM 24/10/08 para aceitar ISENTO</xs:documentation>
351
+ </xs:annotation>
352
+ <xs:restriction base="xs:string">
353
+ <xs:whiteSpace value="preserve"/>
354
+ <xs:maxLength value="14"/>
355
+ <xs:pattern value="[0-9]{2,14}|ISENTO"/>
356
+ </xs:restriction>
357
+ </xs:simpleType>
358
+ <xs:simpleType name="TMod">
359
+ <xs:annotation>
360
+ <xs:documentation>Tipo Modelo Documento Fiscal</xs:documentation>
361
+ </xs:annotation>
362
+ <xs:restriction base="xs:string">
363
+ <xs:whiteSpace value="preserve"/>
364
+ <xs:enumeration value="55"/>
365
+ <xs:enumeration value="65"/>
366
+ </xs:restriction>
367
+ </xs:simpleType>
368
+ <xs:simpleType name="TNF">
369
+ <xs:annotation>
370
+ <xs:documentation>Tipo Número do Documento Fiscal</xs:documentation>
371
+ </xs:annotation>
372
+ <xs:restriction base="xs:string">
373
+ <xs:whiteSpace value="preserve"/>
374
+ <xs:pattern value="[1-9]{1}[0-9]{0,8}"/>
375
+ </xs:restriction>
376
+ </xs:simpleType>
377
+ <xs:simpleType name="TSerie">
378
+ <xs:annotation>
379
+ <xs:documentation>Tipo Série do Documento Fiscal </xs:documentation>
380
+ </xs:annotation>
381
+ <xs:restriction base="xs:string">
382
+ <xs:whiteSpace value="preserve"/>
383
+ <xs:pattern value="0|[1-9]{1}[0-9]{0,2}"/>
384
+ </xs:restriction>
385
+ </xs:simpleType>
386
+ <xs:simpleType name="TUf">
387
+ <xs:annotation>
388
+ <xs:documentation>Tipo Sigla da UF</xs:documentation>
389
+ </xs:annotation>
390
+ <xs:restriction base="xs:string">
391
+ <xs:whiteSpace value="preserve"/>
392
+ <xs:enumeration value="AC"/>
393
+ <xs:enumeration value="AL"/>
394
+ <xs:enumeration value="AM"/>
395
+ <xs:enumeration value="AP"/>
396
+ <xs:enumeration value="BA"/>
397
+ <xs:enumeration value="CE"/>
398
+ <xs:enumeration value="DF"/>
399
+ <xs:enumeration value="ES"/>
400
+ <xs:enumeration value="GO"/>
401
+ <xs:enumeration value="MA"/>
402
+ <xs:enumeration value="MG"/>
403
+ <xs:enumeration value="MS"/>
404
+ <xs:enumeration value="MT"/>
405
+ <xs:enumeration value="PA"/>
406
+ <xs:enumeration value="PB"/>
407
+ <xs:enumeration value="PE"/>
408
+ <xs:enumeration value="PI"/>
409
+ <xs:enumeration value="PR"/>
410
+ <xs:enumeration value="RJ"/>
411
+ <xs:enumeration value="RN"/>
412
+ <xs:enumeration value="RO"/>
413
+ <xs:enumeration value="RR"/>
414
+ <xs:enumeration value="RS"/>
415
+ <xs:enumeration value="SC"/>
416
+ <xs:enumeration value="SE"/>
417
+ <xs:enumeration value="SP"/>
418
+ <xs:enumeration value="TO"/>
419
+ <xs:enumeration value="EX"/>
420
+ </xs:restriction>
421
+ </xs:simpleType>
422
+ <xs:simpleType name="TUfEmi">
423
+ <xs:annotation>
424
+ <xs:documentation>Tipo Sigla da UF de emissor // acrescentado em 24/10/08 </xs:documentation>
425
+ </xs:annotation>
426
+ <xs:restriction base="xs:string">
427
+ <xs:whiteSpace value="preserve"/>
428
+ <xs:enumeration value="AC"/>
429
+ <xs:enumeration value="AL"/>
430
+ <xs:enumeration value="AM"/>
431
+ <xs:enumeration value="AP"/>
432
+ <xs:enumeration value="BA"/>
433
+ <xs:enumeration value="CE"/>
434
+ <xs:enumeration value="DF"/>
435
+ <xs:enumeration value="ES"/>
436
+ <xs:enumeration value="GO"/>
437
+ <xs:enumeration value="MA"/>
438
+ <xs:enumeration value="MG"/>
439
+ <xs:enumeration value="MS"/>
440
+ <xs:enumeration value="MT"/>
441
+ <xs:enumeration value="PA"/>
442
+ <xs:enumeration value="PB"/>
443
+ <xs:enumeration value="PE"/>
444
+ <xs:enumeration value="PI"/>
445
+ <xs:enumeration value="PR"/>
446
+ <xs:enumeration value="RJ"/>
447
+ <xs:enumeration value="RN"/>
448
+ <xs:enumeration value="RO"/>
449
+ <xs:enumeration value="RR"/>
450
+ <xs:enumeration value="RS"/>
451
+ <xs:enumeration value="SC"/>
452
+ <xs:enumeration value="SE"/>
453
+ <xs:enumeration value="SP"/>
454
+ <xs:enumeration value="TO"/>
455
+ </xs:restriction>
456
+ </xs:simpleType>
457
+ <xs:simpleType name="TAmb">
458
+ <xs:annotation>
459
+ <xs:documentation>Tipo Ambiente</xs:documentation>
460
+ </xs:annotation>
461
+ <xs:restriction base="xs:string">
462
+ <xs:whiteSpace value="preserve"/>
463
+ <xs:enumeration value="1"/>
464
+ <xs:enumeration value="2"/>
465
+ </xs:restriction>
466
+ </xs:simpleType>
467
+ <xs:simpleType name="TVerAplic">
468
+ <xs:annotation>
469
+ <xs:documentation>Tipo Versão do Aplicativo</xs:documentation>
470
+ </xs:annotation>
471
+ <xs:restriction base="nfe:TString">
472
+ <xs:minLength value="1"/>
473
+ <xs:maxLength value="20"/>
474
+ </xs:restriction>
475
+ </xs:simpleType>
476
+ <xs:simpleType name="TMotivo">
477
+ <xs:annotation>
478
+ <xs:documentation>Tipo Motivo</xs:documentation>
479
+ </xs:annotation>
480
+ <xs:restriction base="nfe:TString">
481
+ <xs:maxLength value="255"/>
482
+ <xs:minLength value="1"/>
483
+ </xs:restriction>
484
+ </xs:simpleType>
485
+ <xs:simpleType name="TJust">
486
+ <xs:annotation>
487
+ <xs:documentation>Tipo Justificativa</xs:documentation>
488
+ </xs:annotation>
489
+ <xs:restriction base="nfe:TString">
490
+ <xs:minLength value="15"/>
491
+ <xs:maxLength value="255"/>
492
+ </xs:restriction>
493
+ </xs:simpleType>
494
+ <xs:simpleType name="TServ">
495
+ <xs:annotation>
496
+ <xs:documentation>Tipo Serviço solicitado</xs:documentation>
497
+ </xs:annotation>
498
+ <xs:restriction base="nfe:TString"/>
499
+ </xs:simpleType>
500
+ <xs:simpleType name="Tano">
501
+ <xs:annotation>
502
+ <xs:documentation> Tipo ano</xs:documentation>
503
+ </xs:annotation>
504
+ <xs:restriction base="xs:string">
505
+ <xs:whiteSpace value="preserve"/>
506
+ <xs:pattern value="[0-9]{2}"/>
507
+ </xs:restriction>
508
+ </xs:simpleType>
509
+ <xs:simpleType name="TMed">
510
+ <xs:annotation>
511
+ <xs:documentation> Tipo temp médio em segundos</xs:documentation>
512
+ </xs:annotation>
513
+ <xs:restriction base="xs:string">
514
+ <xs:whiteSpace value="preserve"/>
515
+ <xs:pattern value="[0-9]{1,4}"/>
516
+ </xs:restriction>
517
+ </xs:simpleType>
518
+ <xs:simpleType name="TString">
519
+ <xs:annotation>
520
+ <xs:documentation> Tipo string genérico</xs:documentation>
521
+ </xs:annotation>
522
+ <xs:restriction base="xs:string">
523
+ <xs:whiteSpace value="preserve"/>
524
+ <xs:pattern value="[!-ÿ]{1}[ -ÿ]{0,}[!-ÿ]{1}|[!-ÿ]{1}"/>
525
+ </xs:restriction>
526
+ </xs:simpleType>
527
+ <xs:simpleType name="TData">
528
+ <xs:annotation>
529
+ <xs:documentation> Tipo data AAAA-MM-DD</xs:documentation>
530
+ </xs:annotation>
531
+ <xs:restriction base="xs:string">
532
+ <xs:whiteSpace value="preserve"/>
533
+ <xs:pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))"/>
534
+ </xs:restriction>
535
+ </xs:simpleType>
536
+ <xs:simpleType name="TTime">
537
+ <xs:annotation>
538
+ <xs:documentation> Tipo hora HH:MM:SS // tipo acrescentado na v2.0</xs:documentation>
539
+ </xs:annotation>
540
+ <xs:restriction base="xs:string">
541
+ <xs:whiteSpace value="preserve"/>
542
+ <xs:pattern value="(([0-1][0-9])|([2][0-3])):([0-5][0-9]):([0-5][0-9])"/>
543
+ </xs:restriction>
544
+ </xs:simpleType>
545
+ <xs:simpleType name="TDateTimeUTC">
546
+ <xs:annotation>
547
+ <xs:documentation>Data e Hora, formato UTC (AAAA-MM-DDThh:mm:ssTZD, onde TZD = +hh:mm ou -hh:mm)</xs:documentation>
548
+ </xs:annotation>
549
+ <xs:restriction base="xs:string">
550
+ <xs:whiteSpace value="preserve"/>
551
+ <xs:pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d([\-,\+](0[0-9]|10|11):00|([\+](12):00))"/>
552
+ </xs:restriction>
553
+ </xs:simpleType>
554
+ <xs:simpleType name="TPlaca">
555
+ <xs:restriction base="xs:string">
556
+ <xs:whiteSpace value="preserve"/>
557
+ <xs:pattern value="[A-Z]{2,3}[0-9]{4}|[A-Z]{3,4}[0-9]{3}|[A-Z0-9]{7}"/>
558
+ </xs:restriction>
559
+ </xs:simpleType>
560
+ <xs:simpleType name="TCOrgaoIBGE">
561
+ <xs:annotation>
562
+ <xs:documentation>Tipo Código de orgão (UF da tabela do IBGE + 90 RFB)</xs:documentation>
563
+ </xs:annotation>
564
+ <xs:restriction base="xs:string">
565
+ <xs:whiteSpace value="preserve"/>
566
+ <xs:enumeration value="11"/>
567
+ <xs:enumeration value="12"/>
568
+ <xs:enumeration value="13"/>
569
+ <xs:enumeration value="14"/>
570
+ <xs:enumeration value="15"/>
571
+ <xs:enumeration value="16"/>
572
+ <xs:enumeration value="17"/>
573
+ <xs:enumeration value="21"/>
574
+ <xs:enumeration value="22"/>
575
+ <xs:enumeration value="23"/>
576
+ <xs:enumeration value="24"/>
577
+ <xs:enumeration value="25"/>
578
+ <xs:enumeration value="26"/>
579
+ <xs:enumeration value="27"/>
580
+ <xs:enumeration value="28"/>
581
+ <xs:enumeration value="29"/>
582
+ <xs:enumeration value="31"/>
583
+ <xs:enumeration value="32"/>
584
+ <xs:enumeration value="33"/>
585
+ <xs:enumeration value="35"/>
586
+ <xs:enumeration value="41"/>
587
+ <xs:enumeration value="42"/>
588
+ <xs:enumeration value="43"/>
589
+ <xs:enumeration value="50"/>
590
+ <xs:enumeration value="51"/>
591
+ <xs:enumeration value="52"/>
592
+ <xs:enumeration value="53"/>
593
+ <xs:enumeration value="90"/>
594
+ <xs:enumeration value="91"/>
595
+ <xs:enumeration value="92"/>
596
+ </xs:restriction>
597
+ </xs:simpleType>
598
+ </xs:schema>