apol.xsd 22.8 KB
Newer Older
Comune di Salerno's avatar
Comune di Salerno committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified"
           targetNamespace="http://brescia.gov" xmlns:bs="http://brescia.gov"
           xmlns:xs="http://www.w3.org/2001/XMLSchema">
   <!-- BresciaGov -->
   <xs:element name="BresciaGov">
      <xs:complexType>
         <xs:sequence>
            <xs:element name="Messaggio" type="bs:Messaggio"/>
            <xs:element name="Intestazione" type="bs:Intestazione"/>
            <xs:element name="Documento" type="bs:Documento"/>
         </xs:sequence>
      </xs:complexType>
   </xs:element>
   <!-- Messaggio  elemento specifico messaggio xml-->
   <xs:complexType name="Messaggio">
      <xs:sequence>
         <!-- IdDocumento: {IdPratica}_{IdUnivoco} -->
         <xs:element name="IdDocumento">
            <xs:simpleType>
               <xs:restriction base="xs:string">
                  <xs:minLength value="3"/>
                  <xs:maxLength value="100"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <!-- DataCreazione Messaggio XML -->
         <xs:element name="DataCreazione" type="xs:dateTime"/>
         <!-- Mittente  del messaggio-->
         <!--xs:element name="Mittente" type="bs:RifAmministrazione" /-->
         <!-- Destinazione  del messaggio-->
         <xs:element name="Destinazione" type="bs:RifAmministrazione"/>
      </xs:sequence>
   </xs:complexType>
   <!-- Intestazione elemento specifico intestazione documento -->
   <xs:complexType name="Intestazione">
      <xs:sequence>
         <!-- Mittente  soggetto esterno che ha inviato il documento-->
         <xs:element name="Mittente" type="bs:Soggetto" minOccurs="0"/>
         <xs:element name="Ente" type="bs:Ente" minOccurs="0"/>
         <xs:element name="Identificatore" type="bs:Identificatore"/>
         <!-- Riferimenti insieme dei Riferimenti ad altri documenti -->
         <xs:element name="Riferimenti" minOccurs="0">
            <xs:complexType>
               <xs:sequence>
                  <xs:element minOccurs="0" maxOccurs="unbounded"
                              name="Riferimento" type="bs:Riferimento"/>
               </xs:sequence>
            </xs:complexType>
         </xs:element>
         <!-- ProtocolloEmergenza Riferimento all'eventuale protocollo di emergenza -->
         <xs:element name="ProtocolloEmergenza" minOccurs="0"
                     type="bs:ProtocolloEmergenza"/>
         <!-- RiferimentoDocumentiCartacei Indica se vi sono riferimenti a documenti cartacei -->
         <xs:element name="RiferimentoDocumentiCartacei" minOccurs="0"
                     type="xs:boolean"/>
         <!-- RiferimentiTelematici Indica se vi sono riferimenti a documenti telematici in posizione remota -->
         <xs:element name="RiferimentiTelematici" minOccurs="0"
                     type="xs:boolean"/>
         <!-- Pubblicazione sottoelemento per la pubblicazione su APOL -->
          <xs:element name="Pubblicazione" minOccurs="1" type="bs:Pubblicazione"
                     nillable="false"/>
      </xs:sequence>
   </xs:complexType>
   <!-- RifAmministrazione -->
   <xs:complexType name="RifAmministrazione">
      <xs:sequence>
         <xs:element name="Amministrazione" type="bs:TestoRichiesto"/>
         <xs:element name="CodiceAmministrazione" type="bs:Codice"/>
         <xs:element name="IndirizzoTelematico" type="bs:IndirizzoTelematico"/>
      </xs:sequence>
   </xs:complexType>
   <!-- Ente  che ha emesso il documento-->
   <xs:complexType name="Ente">
      <xs:sequence>
         <xs:element name="CodiceIpaEnte" type="bs:Codice"/>
         <xs:element name="DenominazioneEnte" type="xs:string"/>
         <xs:element name="CodiceIstatEnte" type="bs:Codice"/>
         <xs:element name="TitolarioEnte" type="xs:string"/>
         <xs:element name="AltroCodice" type="bs:Codice"/>
      </xs:sequence>
   </xs:complexType>
   <!-- IdentificatoreBase -->
   <xs:complexType name="IdentificatoreBase">
      <xs:sequence>
         <xs:element name="CodiceAmministrazione" type="bs:Codice"
                     minOccurs="0"/>
         <xs:element name="CodiceAOO" type="bs:Codice" minOccurs="0"/>
         <xs:element name="NumeroRegistrazione" type="bs:NumeroRegistrazione"/>
         <xs:element name="DataRegistrazione" type="xs:dateTime" minOccurs="0"/>
      </xs:sequence>
   </xs:complexType>
   <!-- Identificatore -->
   <xs:complexType name="Identificatore">
      <xs:complexContent>
         <xs:extension base="bs:IdentificatoreBase">
            <xs:sequence>
               <xs:element name="DescrizioneAOO" type="xs:string"
                           minOccurs="0"/>
               <xs:element name="UnitaOrganizzativa"
                           type="bs:UnitaOrganizzativa" minOccurs="0"
                           maxOccurs="1"/>
            </xs:sequence>
         </xs:extension>
      </xs:complexContent>
   </xs:complexType>
   <!-- Riferimento  riferimento ad altro documento-->
   <xs:complexType name="Riferimento">
      <xs:complexContent>
         <xs:extension base="bs:IdentificatoreBase">
            <xs:sequence>
               <xs:element name="Oggetto" type="bs:TestoRichiesto"/>
               <!--xs:element name="Classifica" type="bs:Classifica"/-->
            </xs:sequence>
         </xs:extension>
      </xs:complexContent>
   </xs:complexType>
   <!-- ProtocolloEmergenza -->
   <xs:complexType name="ProtocolloEmergenza">
      <xs:sequence>
         <xs:element name="TmpData" type="xs:dateTime"/>
         <xs:element name="TmpNumero" type="bs:Codice"/>
         <xs:element name="TmpNote" minOccurs="0" type="xs:string"/>
      </xs:sequence>
   </xs:complexType>
   <!-- Documento elemento specifico metadati documento -->
   <xs:complexType name="Documento">
      <xs:complexContent>
         <xs:extension base="bs:DocumentoBase">
            <xs:sequence>
               <!-- IdPratica -->
               <xs:element name="IdPratica">
                  <xs:simpleType>
                     <xs:restriction base="xs:string">
                        <xs:minLength value="1"/>
                        <xs:maxLength value="50"/>
                     </xs:restriction>
                  </xs:simpleType>
               </xs:element>
               <xs:element name="Autori" minOccurs="0">
                  <xs:complexType>
                     <xs:sequence minOccurs="1" maxOccurs="unbounded">
                        <xs:element name="Autore" type="bs:Soggetto"/>
                     </xs:sequence>
                  </xs:complexType>
               </xs:element>
               <xs:element name="Destinatari" minOccurs="0">
                  <xs:complexType>
                     <xs:sequence minOccurs="1" maxOccurs="unbounded">
                        <xs:element name="Destinatario" type="bs:Destinatario"/>
                     </xs:sequence>
                  </xs:complexType>
               </xs:element>
               <!--xs:element name="FirmeDigitali" minOccurs="0">
                  <xs:complexType>
                     <xs:sequence minOccurs="1" maxOccurs="unbounded">
                        <xs:element name="FirmaDigitale" type="bs:Firma"
                                    maxOccurs="1" minOccurs="1"/>
                     </xs:sequence>
                  </xs:complexType>
               </xs:element-->               
               <xs:element name="NumeroAllegati" type="xs:positiveInteger" minOccurs="0"/>
               <xs:element name="Allegati" minOccurs="0">
                  <xs:complexType>
                     <xs:sequence>
                        <xs:element minOccurs="0" maxOccurs="unbounded"
                                    name="Allegato" type="bs:Allegato"/>
                     </xs:sequence>
                  </xs:complexType>
               </xs:element>
               <!--
               <xs:element name="UnitaArchivistica" minOccurs="0"
                           type="bs:UnitaArchivistica"/>
               -->
               <!--
               <xs:element name="Cronologia" minOccurs="0"
                           type="bs:Cronologia"/>
               -->
            </xs:sequence>
         </xs:extension>
      </xs:complexContent>
   </xs:complexType>
   <!-- UnitaArchivistica -->
   <xs:complexType name="UnitaArchivistica">
      <xs:sequence>
         <xs:element name="Codice" minOccurs="1" type="bs:TestoRichiesto"/>
         <xs:element name="UnitaArchivistica" minOccurs="0"
                     type="bs:UnitaArchivistica"/>
      </xs:sequence>
   </xs:complexType>
   <!-- Cronologia -->
   <xs:complexType name="Cronologia">
      <xs:sequence>
         <xs:element name="Data" minOccurs="1" type="xs:dateTime"/>
         <xs:element name="Stato" minOccurs="1">
            <xs:simpleType>
               <xs:restriction base="xs:string">
                  <xs:enumeration value="attivo"/>
                  <xs:enumeration value="semiattivo"/>
                  <xs:enumeration value="storico"/>
                  <xs:enumeration value="scartato"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="Note" minOccurs="0" type="xs:string"/>
      </xs:sequence>
   </xs:complexType>
   <!-- DocumentoBase: definisce la struttura base e comune di Documento e Allegato. -->
   <xs:complexType name="DocumentoBase">
      <xs:sequence>
         <xs:element name="CollocazioneTelematica" minOccurs="0"
                     type="bs:CollocazioneTelematica"/>
         <xs:element name="TipoDocumento" type="xs:string"/>
         <!-- Oggetto Titolo del documento -->
         <xs:element name="Oggetto" type="bs:TestoRichiesto"/>
         <!--
         <xs:element name="CondizioniDiAccesso" minOccurs="0" type="xs:string"/>
         -->
         <!-- NumeroPagine Numero Pagine del documento -->
         <xs:element name="NumeroPagine" minOccurs="0"
                     type="xs:positiveInteger"/>
         <!--
         <xs:element name="Conservazione" minOccurs="0"
                     type="bs:Conservazione"/>
         -->
         <!-- Data data desumibile del documento, data di formazione del documento, data certa del documento -->
         <xs:element name="Data" type="xs:dateTime" nillable="false" minOccurs="1"/>
         <xs:element name="Classifica" minOccurs="0" type="bs:Classifica"/>
         <xs:element name="Categoria" minOccurs="1" type="bs:Categoria"/>
         <xs:element name="Note" minOccurs="0" type="xs:string"/>
      </xs:sequence>
      <xs:attribute name="id" type="xs:string" use="optional"/>
      <xs:attribute name="nome" type="xs:string" use="optional"/>
      <xs:attribute name="tipoRiferimento" type="xs:string"
                    use="optional"/>
      <xs:attribute name="idConservazione" type="xs:unsignedInt"
                    use="optional"/>
      <xs:attribute name="pubblicaApol" type="xs:boolean" use="required"/>
      <xs:attribute name="pubblicaGeDoc" type="xs:boolean" />
   </xs:complexType>
   <!-- CollocazioneTelematica -->
   <xs:complexType name="CollocazioneTelematica">
      <xs:sequence>
         <xs:element name="RiferimentoURI" minOccurs="0"
                     type="bs:TestoRichiesto"/>
         <xs:element name="Impronta" minOccurs="0" type="bs:Impronta"/>
      </xs:sequence>
   </xs:complexType>
   <!-- Impronta -->
   <xs:complexType name="Impronta">
      <xs:simpleContent>
         <xs:extension base="bs:TestoRichiesto">
            <xs:attribute name="algoritmo" type="bs:TestoRichiesto"/>
            <xs:attribute name="codifica" type="bs:TestoRichiesto"/>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <!-- FirmaDigitale -->
   <xs:complexType name="Firma">
      <xs:sequence>
         <xs:element name="Firmatario" type="bs:Certificato"/>
         <xs:element name="EnteCertificatore" type="bs:Certificato"/>
         <xs:element name="DataFirma" type="xs:dateTime"/>
      </xs:sequence>
   </xs:complexType>
   <!-- Certificato -->
   <xs:complexType name="Certificato">
      <xs:sequence>
         <xs:element name="NumeroDiSerie" type="bs:TestoRichiesto"/>
         <xs:element name="RilasciatoDa" type="bs:TestoRichiesto"/>
         <xs:element name="ValidoDal" type="xs:dateTime"/>
         <xs:element name="ValidoAl" type="xs:dateTime"/>
         <xs:element name="Soggetto" type="bs:TestoRichiesto"/>
         <xs:element name="NomeAlternativo" type="xs:string"/>
         <xs:element name="IdPersonale" type="xs:string"/>
      </xs:sequence>
   </xs:complexType>
   <!-- Conservazione -->
   <xs:complexType name="Conservazione">
      <xs:sequence>
         <xs:element name="TempiConservazione" type="bs:TestoRichiesto"/>
         <xs:element name="ScartoConservazione" minOccurs="0"
                     type="bs:ScartoConservazione"/>
      </xs:sequence>
   </xs:complexType>
   <!-- ScartoConservazione -->
   <xs:complexType name="ScartoConservazione">
      <xs:sequence>
         <xs:element name="DataScarto" type="xs:date"/>
         <xs:element name="MotivoScarto" type="xs:string"/>
      </xs:sequence>
   </xs:complexType>
   <!-- Classifica -->
   <xs:complexType name="Classifica">
      <xs:sequence>
         <xs:element minOccurs="1" maxOccurs="unbounded" name="Livello">
            <xs:complexType>
               <xs:simpleContent>
                  <xs:extension base="bs:TestoRichiesto">
                     <xs:attribute name="nome" type="bs:TestoRichiesto"
                                   use="required"/>
                  </xs:extension>
               </xs:simpleContent>
            </xs:complexType>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <!-- Categoria -->
   <xs:complexType name="Categoria">
      <xs:sequence>
         <xs:element maxOccurs="unbounded" name="Livello">
            <xs:complexType>
               <xs:simpleContent>
                  <xs:extension base="bs:TestoRichiesto">
                     <xs:attribute name="nome" type="bs:TestoRichiesto"
                                   use="required"/>
                  </xs:extension>
               </xs:simpleContent>
            </xs:complexType>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <!-- Allegato: 'rif' si riferisce all'ID del documento principale -->
   <xs:complexType name="Allegato">
      <xs:complexContent>
         <xs:extension base="bs:DocumentoBase">
            <xs:sequence>
               <xs:element name="Autori" minOccurs="0">
                  <xs:complexType>
                     <xs:sequence minOccurs="1" maxOccurs="unbounded">
                        <xs:element name="Autore" type="bs:Soggetto"/>
                     </xs:sequence>
                  </xs:complexType>
               </xs:element>
            <!--xs:element name="FirmeDigitali" minOccurs="0">
                  <xs:complexType>
                     <xs:sequence minOccurs="1" maxOccurs="unbounded">
                        <xs:element name="FirmaDigitale" type="bs:Firma"/>
                     </xs:sequence>
                  </xs:complexType>
               </xs:element-->            
            </xs:sequence>
            <xs:attribute name="rif" type="bs:TestoRichiesto" use="optional"/>
         </xs:extension>
      </xs:complexContent>
   </xs:complexType>
   <!-- Destinatario: Soggetto con attributo perConoscenza -->
   <xs:complexType name="Destinatario">
      <xs:complexContent>
         <xs:extension base="bs:Soggetto">
            <xs:attribute name="perConoscenza" type="xs:string"/>
         </xs:extension>
      </xs:complexContent>
   </xs:complexType>
   <!-- Soggetto  -->
   <xs:complexType name="Soggetto">
      <xs:sequence>
         <xs:choice minOccurs="1" maxOccurs="1">
            <xs:element name="Persona" type="bs:Persona"/>
            <xs:element name="Amministrazione" type="bs:Amministrazione"/>
         </xs:choice>
         <xs:group ref="bs:Recapiti"/>
      </xs:sequence>
      <!-- idSoggetto id Bresciagov del soggetto, in particolare caso di persona -->      
      <xs:attribute name="idSoggetto" type="xs:string"/>
   </xs:complexType>
   <!-- Persona -->
   <xs:complexType name="Persona">
      <xs:sequence>
         <xs:choice minOccurs="1" maxOccurs="1">
            <xs:group ref="bs:PersonaFisica"/>
            <xs:group ref="bs:PersonaGiuridica"/>
         </xs:choice>
      </xs:sequence>
   </xs:complexType>
   <!-- PersonaFisica -->
   <xs:group name="PersonaFisica">
      <xs:sequence>
         <xs:element name="Nome" minOccurs="0" type="xs:string"/>
         <xs:element name="Cognome" type="bs:TestoRichiesto"/>
         <xs:element name="Titolo" minOccurs="0" type="xs:string"/>
         <xs:element name="CodiceFiscale" minOccurs="0" type="xs:string"/>
      </xs:sequence>
   </xs:group>
   <!-- PersonaGiuridica -->
   <xs:group name="PersonaGiuridica">
      <xs:sequence>
         <xs:element name="Denominazione" type="bs:TestoRichiesto"/>
         <xs:element name="CodiceFiscale" minOccurs="0" type="xs:string"/>
         <xs:element name="PartitaIVA" minOccurs="0" type="xs:string"/>
      </xs:sequence>
   </xs:group>
   <!-- Amministrazione -->
   <xs:complexType name="Amministrazione">
      <xs:sequence>
         <xs:element name="Denominazione" type="bs:TestoRichiesto"/>
         <xs:element name="CodiceAmministrazione" type="bs:Codice"/>
         <xs:element name="UnitaOrganizzativa" type="bs:UnitaOrganizzativa"
                     minOccurs="0"/>
      </xs:sequence>
   </xs:complexType>
   <!-- UnitaOrganizzativa -->
   <xs:complexType name="UnitaOrganizzativa">
      <xs:sequence>
         <xs:element name="Denominazione" type="bs:TestoRichiesto"/>
         <xs:element name="Codice" type="bs:Codice" minOccurs="0"/>
         <xs:choice minOccurs="0" maxOccurs="1">
            <xs:element name="UnitaOrganizzativa" type="bs:UnitaOrganizzativa"/>
            <xs:element name="Persona" type="bs:Persona"/>
         </xs:choice>
      </xs:sequence>
      <!-- tipo permanente  o temporanea -->
      <xs:attribute name="tipo" type="xs:string" use="optional"/>
   </xs:complexType>
   <!-- Recapiti  -->
   <xs:group name="Recapiti">
      <xs:sequence>
         <xs:element name="IndirizzoTelematico" minOccurs="0"
                     type="bs:IndirizzoTelematico"/>
         <xs:element name="IndirizzoPostale" minOccurs="0"
                     type="bs:IndirizzoPostale"/>
         <xs:element name="Telefono" minOccurs="0" maxOccurs="unbounded"
                     type="xs:string"/>
         <xs:element name="Fax" minOccurs="0" maxOccurs="unbounded"
                     type="xs:string"/>
      </xs:sequence>
   </xs:group>
   <!-- IndirizzoTelematico -->
   <xs:complexType name="IndirizzoTelematico">
      <xs:simpleContent>
         <xs:extension base="xs:string">
            <xs:attribute name="tipo" default="smtp">
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:enumeration value="smtp"/>
                     <xs:enumeration value="uri"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="note" use="optional" type="xs:string"/>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <!-- IndirizzoPostale -->
   <xs:complexType name="IndirizzoPostale">
      <xs:sequence>
         <xs:element name="Toponimo" minOccurs="1">
            <xs:complexType>
               <xs:simpleContent>
                  <xs:extension base="bs:TestoRichiesto">
                     <!-- Denominazione Urbanistica Generica (es. Via, Viale, ...) -->
                     <xs:attribute name="dug" type="bs:TestoRichiesto"
                                   use="required"/>
                  </xs:extension>
               </xs:simpleContent>
            </xs:complexType>
         </xs:element>
         <xs:element name="Civico" minOccurs="1" type="bs:TestoRichiesto"/>
         <xs:element name="CAP" minOccurs="1" type="bs:TestoRichiesto"/>
         <xs:element name="Comune" minOccurs="1" type="bs:Comune"/>
         <xs:element name="Provincia" minOccurs="1" type="bs:TestoRichiesto"/>
         <xs:element name="Nazione" type="bs:TestoRichiesto" minOccurs="0"
                     default="Italia"/>
      </xs:sequence>
   </xs:complexType>
   <!-- Comune -->
   <xs:complexType name="Comune">
      <xs:simpleContent>
         <xs:extension base="bs:TestoRichiesto">
            <xs:attribute name="CodiceISTAT" type="xs:string" use="optional"/>
            <xs:attribute name="CodiceIPA" type="xs:string" use="optional"/>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <!-- Pubblicazione elemento specifico per la pubblicazione su APOL-->
   <xs:complexType name="Pubblicazione">
      <xs:sequence>
         <!-- Descrizione descrizione testuale del documento -->
         <xs:element name="Descrizione" minOccurs="1" type="bs:TestoRichiesto"/>
         <!-- Interno indica se il documento è interno o esterno (true interno) -->
         <xs:element name="Interno" minOccurs="1" type="xs:boolean" nillable="false"/>
         <!-- Pubblicante Descrizione UO se interno, descrizione soggetto esterno altrimenti-->
         <xs:element name="Pubblicante" minOccurs="1" type="xs:string"/>
         <xs:element name="Apol" minOccurs="1" type="bs:Apol"/>
         <xs:element name="Gedoc" minOccurs="0" type="bs:Gedoc"/>
      </xs:sequence>
   </xs:complexType>
   <!-- Apol -->
   <xs:complexType name="Apol">
      <xs:sequence>
         <xs:element name="DataInizioApol" minOccurs="1" type="xs:date"/>
         <xs:element name="DataFineApol" minOccurs="1" type="xs:date"/>
         <xs:element name="DataRimozione" minOccurs="0" type="xs:date"/>
         <xs:element name="MotivoRimozione" minOccurs="0" type="xs:string"/>
         <xs:element name="NotePubblicazione" minOccurs="0" type="xs:string"/>
      </xs:sequence>
   </xs:complexType>
   <!-- Gedoc -->
   <xs:complexType name="Gedoc">
      <xs:sequence>
         <xs:element name="DataInizioGedoc" minOccurs="0" type="xs:date"/>
         <xs:element name="DataFineGedoc" minOccurs="0" type="xs:date"/>
      </xs:sequence>
   </xs:complexType>
   <!-- Codifica ISO 646 (US-ASCII a 7 bit) -->
   <xs:simpleType name="Codice">
      <xs:restriction base="xs:string">
         <xs:pattern value="([a-z]|[A-Z]|[0-9]|_)+"/>
      </xs:restriction>
   </xs:simpleType>
   <!-- tipoRiferimento: per attributo in DocumentoBase -->
   <xs:simpleType name="tipoRiferimento">
      <xs:restriction base="xs:string">
         <xs:enumeration value="MIME"/>
         <xs:enumeration value="telematico"/>
         <xs:enumeration value="cartaceo"/>
      </xs:restriction>
   </xs:simpleType>
   <!-- NumeroRegistrazione: formato aaaaTnnnnnnn -->
   <xs:simpleType name="NumeroRegistrazione">
      <xs:restriction base="xs:string">
         <!-- <xs:pattern value="[0-9][0-9][0-9][0-9][EUI][0-9]{7,12}" /> -->
         <xs:minLength value="1"/>
      </xs:restriction>
   </xs:simpleType>
   <!-- TestoRichiesto -->
   <xs:simpleType name="TestoRichiesto">
      <xs:restriction base="xs:string">
         <xs:minLength value="1"/>
      </xs:restriction>
   </xs:simpleType>
</xs:schema>