<?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://ip6"
            targetNamespace="http://ip6" elementFormDefault="qualified">
  <xsd:annotation>
    <xsd:documentation xml:lang="es">Borrado masivo de certificados de gastos AC</xsd:documentation>
    <xsd:appinfo xml:lang="es">Fecha de la última modificación: 28/02/2014</xsd:appinfo>
  </xsd:annotation>
  <xsd:simpleType name="CodigoOperacionRequerido">
    <xsd:annotation>
      <xsd:appinfo>[*](1,25)</xsd:appinfo>
      <xsd:documentation xml:lang="es">Valor de hasta 25 caracteres, obligatorio</xsd:documentation>
    </xsd:annotation>
    <xsd:restriction base="xsd:string">
      <xsd:minLength value="1"/>
      <xsd:maxLength value="25"/>
    </xsd:restriction>
  </xsd:simpleType>
  <xsd:simpleType name="CodigoCertificadoRequerido">
    <xsd:annotation>
      <xsd:appinfo>[*](1,10)</xsd:appinfo>
      <xsd:documentation xml:lang="es">Valor de hasta 10 caracteres, obligatorio</xsd:documentation>
    </xsd:annotation>
    <xsd:restriction base="xsd:string">
      <xsd:minLength value="1"/>
      <xsd:maxLength value="10"/>
    </xsd:restriction>
  </xsd:simpleType>
  <xsd:simpleType name="CodigoCertificadoNoRequerido">
    <xsd:annotation>
      <xsd:appinfo>[*](0,10)</xsd:appinfo>
      <xsd:documentation xml:lang="es">Valor de hasta 10 caracteres, no obligatorio</xsd:documentation>
    </xsd:annotation>
    <xsd:restriction base="xsd:string">
      <xsd:minLength value="0"/>
      <xsd:maxLength value="10"/>
    </xsd:restriction>
  </xsd:simpleType>
  <xsd:simpleType name="CodigoControlNoRequerido">
    <xsd:annotation>
      <xsd:appinfo>[*](1,10)</xsd:appinfo>
      <xsd:documentation xml:lang="es">Valor de hasta 30 caracteres, obligatorio</xsd:documentation>
    </xsd:annotation>
    <xsd:restriction base="xsd:string">
      <xsd:minLength value="0"/>
      <xsd:maxLength value="30"/>
    </xsd:restriction>
  </xsd:simpleType>  
  <xsd:simpleType name="FechaRequerida">
    <xsd:annotation>
      <xsd:appinfo>dd/MM/yyyy</xsd:appinfo>
      <xsd:documentation xml:lang="es">Valor de tipo fecha, obligatorio</xsd:documentation>
    </xsd:annotation>
    <xsd:restriction base="xsd:string">
      <xsd:pattern value="(([0][1-9]|[1-2][0-9]|[3][0-1])/([0][1-9]|[1][0-2])/([0-9]{4})){1}"/>
    </xsd:restriction>
  </xsd:simpleType>
  <xsd:simpleType name="FechaLarga">
    <xsd:annotation>
      <xsd:appinfo>
        dd/MM/yyyy hh:mm:ss
      </xsd:appinfo>
      <xsd:documentation xml:lang="es">
        Valor de tipo fecha larga con hora
      </xsd:documentation>
    </xsd:annotation>
    <xsd:restriction base="xsd:string">
      <xsd:pattern value="(([0][1-9]|[1-2][0-9]|[3][0-1])/([0][1-9]|[1][0-2])/([0-9]{4}) (([01][0-9])|(2[0-3]))(:[0-5][0-9]){2}(\.[0-9]+)?){0,1}"/>
    </xsd:restriction>
  </xsd:simpleType>
  <xsd:simpleType name="ImportePosNegRequerido">
    <xsd:annotation>
      <xsd:appinfo>[-](0,1)#(1,n)[,##](0,1) | [-](0,1)#(1,3)[.###](0,n)[,##](0,1)</xsd:appinfo>
      <xsd:documentation xml:lang="es">Valor de tipo importe general positivo o
                                       negativo, obligatorio</xsd:documentation>
    </xsd:annotation>
    <xsd:restriction base="xsd:string">
      <xsd:pattern value="(([\-]?[0]|[\-]?[1-9][0-9]*|[\-]?[1-9][0-9]{0,2}(.[0-9]{3})*)(,[0-9]{1,2})?){1}"/>
    </xsd:restriction>
  </xsd:simpleType>
  <xsd:simpleType name="ImportePosNegNoRequerido">
    <xsd:annotation>
      <xsd:appinfo>[-](0,1)#(0,n)[,##](0,1) | [-](0,1)#(1,3)[.###](0,n)[,##](0,1)</xsd:appinfo>
      <xsd:documentation xml:lang="es">Valor de tipo importe general no
                                       obligatorio</xsd:documentation>
    </xsd:annotation>
    <xsd:restriction base="xsd:string">
      <xsd:pattern value="(([\-]?[0]|[\-]?[1-9][0-9]*|[\-]?[1-9][0-9]{0,2}(.[0-9]{3})*)(,[0-9]{1,2})?){0,1}"/>
    </xsd:restriction>
  </xsd:simpleType>    
  <xsd:simpleType name="SiNoRequerido">
    <xsd:annotation>
      <xsd:appinfo>S | N</xsd:appinfo>
      <xsd:documentation xml:lang="es">Valor de tipo SiNo, obligatorio</xsd:documentation>
    </xsd:annotation>
    <xsd:restriction base="xsd:string">
      <xsd:pattern value="(S|N){1}"/>
    </xsd:restriction>
  </xsd:simpleType>  
  <xsd:simpleType name="MotivRectifNoRequerido">
    <xsd:annotation>
      <xsd:appinfo>CONTROL | ERROR_MATER | MODIFICACION | AJUSTE</xsd:appinfo>
      <xsd:documentation xml:lang="es">Valor de tipo MotivRectif, no obligatorio</xsd:documentation>
    </xsd:annotation>
    <xsd:restriction base="xsd:string">
      <xsd:pattern value="(CONTROL|ERROR_MATER|MODIFICACION|AJUSTE){0,1}"/>
    </xsd:restriction>
  </xsd:simpleType>    
  <xsd:group name="grupoOrganismo">
    <xsd:sequence>
      <xsd:element name="codOrgano">
        <xsd:annotation>
          <xsd:documentation xml:lang="es">Código del socio.</xsd:documentation>
        </xsd:annotation>
        <xsd:simpleType>
          <xsd:restriction base="xsd:string">
            <xsd:minLength value="1"/>
            <xsd:maxLength value="10"/>
          </xsd:restriction>
        </xsd:simpleType>
      </xsd:element>
      <xsd:element name="codTipoOrgano">
        <xsd:annotation>
          <xsd:documentation xml:lang="es">Código del tipo de socio.</xsd:documentation>
        </xsd:annotation>
        <xsd:simpleType>
          <xsd:restriction base="xsd:string">
            <xsd:minLength value="1"/>
            <xsd:maxLength value="2"/>
          </xsd:restriction>
        </xsd:simpleType>
      </xsd:element>
    </xsd:sequence>
  </xsd:group>
  <xsd:group name="grupoCostes">
    <xsd:sequence>
      <xsd:element name="contieneIngresos" type="SiNoRequerido">
        <xsd:annotation>
          <xsd:documentation xml:lang="es">¿Contiene ingresos?</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="ingresosNetos" type="ImportePosNegNoRequerido">
        <xsd:annotation>
          <xsd:documentation xml:lang="es">Ingresos netos.</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="costeTotal" type="ImportePosNegRequerido">
        <xsd:annotation>
          <xsd:documentation xml:lang="es">Coste total.</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="costeTotalSubven" type="ImportePosNegRequerido">
        <xsd:annotation>
          <xsd:documentation xml:lang="es">Coste total subvencionable.</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="costePublicoSubven" type="ImportePosNegRequerido">
        <xsd:annotation>
          <xsd:documentation xml:lang="es">Coste público subvencionable.</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="costePublicoSubvenAcumulado"
                   type="ImportePosNegRequerido"/>
      <xsd:element name="costePrivadoSubven" type="ImportePosNegRequerido">
        <xsd:annotation>
          <xsd:documentation xml:lang="es">Coste privado subvencionable.</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="costePrivadoSubvenAcumulado"
                   type="ImportePosNegRequerido"/>
      <xsd:element name="ayudaFeder" type="ImportePosNegRequerido">
        <xsd:annotation>
          <xsd:documentation xml:lang="es">Ayuda feder</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
    </xsd:sequence>
  </xsd:group>
  <xsd:group name="grupoCertAutoCert">
    <xsd:sequence>
      <!--xsd:element name="codOperacion" type="CodigoOperacionRequerido">
        <xsd:annotation>
          <xsd:documentation xml:lang="es">Código de la operación para
                                           autoridad certificación.</xsd:documentation>
        </xsd:annotation>
      </xsd:element-->
      <xsd:element name="codCertificado" type="CodigoCertificadoRequerido">
        <xsd:annotation>
          <xsd:documentation xml:lang="es">Código del certificado para
                                           autoridad certificación.</xsd:documentation>
        </xsd:annotation>
      </xsd:element>      
    </xsd:sequence>
  </xsd:group>    
  <xsd:element name="SolicitudBorraCertAutoCert">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="detalleCertAutoCert" minOccurs="0"
                     maxOccurs="unbounded">
          <xsd:complexType>
            <xsd:sequence>
              <xsd:element name="codPOperativo">
                <xsd:annotation>
                  <xsd:documentation xml:lang="es">Código del programa operativo.</xsd:documentation>
                </xsd:annotation>
                <xsd:simpleType>
                  <xsd:restriction base="xsd:string">
                    <xsd:minLength value="1"/>
                    <xsd:maxLength value="10"/>
                  </xsd:restriction>
                </xsd:simpleType>
              </xsd:element>
              <xsd:element name="codOperacion" type="CodigoOperacionRequerido">
                <xsd:annotation>
                  <xsd:documentation xml:lang="es">Código de la operación para
                                                   autoridad certificación.</xsd:documentation>
                </xsd:annotation>
              </xsd:element>
              <xsd:element name="codCertificado" type="CodigoCertificadoRequerido">
                <xsd:annotation>
                  <xsd:documentation xml:lang="es">Código del certificado para
                                                   autoridad certificación.</xsd:documentation>
                </xsd:annotation>
              </xsd:element>
              <xsd:element name="socios" minOccurs="0" maxOccurs="1">
                <xsd:annotation>
                  <xsd:documentation xml:lang="es">No es obligatorio cuando se
                                                   trata de un certificado para
                                                   autoridad certificación que
                                                   ya existe.</xsd:documentation>
                </xsd:annotation>
                <xsd:complexType>
                  <xsd:sequence>
                    <xsd:element name="socio" minOccurs="1"
                                 maxOccurs="unbounded">
                      <xsd:annotation>
                          <xsd:documentation xml:lang="es">No es obligatorio pero cuando se
                                                           indican el o los socios significa
                                                           que no se pretende borrar el certificado para
                                                           autoridad certificación pero sí
                                                           estos los socios.</xsd:documentation>
                      </xsd:annotation>                                 
                      <xsd:complexType>
                        <xsd:sequence>
                          <xsd:group ref="grupoOrganismo">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">Socio.</xsd:documentation>
                            </xsd:annotation>
                          </xsd:group>
                        </xsd:sequence>
                      </xsd:complexType>
                    </xsd:element>
                  </xsd:sequence>
                </xsd:complexType>
              </xsd:element>
            </xsd:sequence>
          </xsd:complexType>
        </xsd:element>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
  <xsd:element name="ResultadoBorraCertAutoCert">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="EstadoDeResultado">
          <xsd:complexType>
            <xsd:sequence>
              <xsd:element name="valor"/>
              <xsd:element name="fecha" type="FechaLarga"/>
              <xsd:element name="idValor"/>
              <xsd:element name="comentario"/>
              <xsd:element name="tipoProceso">
                <xsd:annotation>
                 <xsd:documentation>
                  Validación o carga
                 </xsd:documentation>
                </xsd:annotation>
               </xsd:element>
              <xsd:element name="numeroElementosTratados"/>
            </xsd:sequence>
          </xsd:complexType>
        </xsd:element>
        <xsd:element name="ResultadoConsulta">
          <xsd:complexType>
            <xsd:sequence>
              <xsd:element name="parCertAutoCertError" minOccurs="0"
                           maxOccurs="unbounded">
                <xsd:annotation>
                  <xsd:documentation xml:lang="es">Indica el certificado
                                                   para autoridad
                                                   certificación que
                                                   se pretende borrar
                                                   o los socios de la misma
                                                   que se pretenden borrar.</xsd:documentation>
                </xsd:annotation>                           
                <xsd:complexType>
                  <xsd:sequence>
                    <xsd:element name="certAutoCertSolicitado" minOccurs="0"
                                 maxOccurs="unbounded">
                      <xsd:complexType>
                        <xsd:sequence>
                          <xsd:element name="codPOperativo">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">Código del
                                                               programa
                                                               operativo.</xsd:documentation>
                            </xsd:annotation>
                            <xsd:simpleType>
                              <xsd:restriction base="xsd:string">
                                <xsd:minLength value="1"/>
                                <xsd:maxLength value="10"/>
                              </xsd:restriction>
                            </xsd:simpleType>
                          </xsd:element>
                          <xsd:element name="codOperacion"
                                       type="CodigoOperacionRequerido">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">Código de la
                                                               operación para
                                                               autoridad
                                                               certificación.</xsd:documentation>
                            </xsd:annotation>
                          </xsd:element>
                          <xsd:element name="codCertificado"
                                       type="CodigoCertificadoRequerido">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">Código del
                                                               certificado para
                                                               autoridad
                                                               certificación.</xsd:documentation>
                            </xsd:annotation>
                          </xsd:element>
                          <xsd:element name="socios" minOccurs="0"
                                       maxOccurs="1">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">Indica el o los socios
                                                               que se pretenden borrar
                                                               de un certificado
                                                               para autoridad
                                                               certificación que
                                                               ya existe.</xsd:documentation>
                            </xsd:annotation>
                            <xsd:complexType>
                              <xsd:sequence>
                                <xsd:element name="socio" minOccurs="1"
                                             maxOccurs="unbounded">
                                  <xsd:complexType>
                                    <xsd:sequence>
                                      <xsd:group ref="grupoOrganismo">
                                        <xsd:annotation>
                                          <xsd:documentation xml:lang="es">Socio.</xsd:documentation>
                                        </xsd:annotation>
                                      </xsd:group>
                                    </xsd:sequence>
                                  </xsd:complexType>
                                </xsd:element>
                              </xsd:sequence>
                            </xsd:complexType>
                          </xsd:element>
                        </xsd:sequence>
                      </xsd:complexType>
                    </xsd:element>
                    <xsd:element name="mensajesFallo">
                      <xsd:complexType>
                        <xsd:sequence>
                          <xsd:element name="error" maxOccurs="unbounded"
                                       minOccurs="1"/>
                        </xsd:sequence>
                      </xsd:complexType>
                    </xsd:element>
                  </xsd:sequence>
                </xsd:complexType>
              </xsd:element>
              <xsd:element name="parCertAutoCert" maxOccurs="unbounded"
                           minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation xml:lang="es">Indica el o los socios de un certificado
                                               para autoridad
                                               certificación que
                                               se han borrado, sin borrar este certificado.</xsd:documentation>
                </xsd:annotation>                           
                <xsd:complexType>
                  <xsd:sequence>
                    <xsd:element name="certAutoCertValorNuevo">
                      <xsd:complexType>
                        <xsd:sequence>
                          <xsd:element name="codPOperativo">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">Código del
                                                               programa
                                                               operativo.</xsd:documentation>
                            </xsd:annotation>
                            <xsd:simpleType>
                              <xsd:restriction base="xsd:string">
                                <xsd:minLength value="1"/>
                                <xsd:maxLength value="10"/>
                              </xsd:restriction>
                            </xsd:simpleType>
                          </xsd:element>
                          <xsd:element name="codEje">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">Código del eje
                                                               asociado al
                                                               programa
                                                               operativo.</xsd:documentation>
                            </xsd:annotation>
                            <xsd:simpleType>
                              <xsd:restriction base="xsd:string">
                                <xsd:minLength value="1"/>
                                <xsd:maxLength value="2"/>
                              </xsd:restriction>
                            </xsd:simpleType>
                          </xsd:element>
                          <xsd:element name="codOperacion"
                                       type="CodigoOperacionRequerido">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">Código de la
                                                               operación para
                                                               autoridad
                                                               certificación.</xsd:documentation>
                            </xsd:annotation>
                          </xsd:element>
                          <xsd:element name="codCertificado"
                                       type="CodigoCertificadoRequerido">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">Código del
                                                               certificado para
                                                               autoridad
                                                               certificación.</xsd:documentation>
                            </xsd:annotation>
                          </xsd:element>
                          <xsd:element name="fechaCertificado"
                                       type="FechaRequerida">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">Fecha del
                                                               certificado para
                                                               autoridad
                                                               certificación.</xsd:documentation>
                            </xsd:annotation>
                          </xsd:element>
                          <xsd:element name="gastoAsistTecnica"
                                       type="ImportePosNegRequerido">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">Gasto de
                                                               asisténcia técnca.</xsd:documentation>
                            </xsd:annotation>
                          </xsd:element>
                          <xsd:element name="codControl" type="CodigoControlNoRequerido">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">Código del control asociado.</xsd:documentation>
                            </xsd:annotation>
                          </xsd:element>                          
                          <xsd:element name="certificadosGastosModif" minOccurs="0" maxOccurs="1">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">Es obligatorio cuando se
                                                               trata de una rectificación de gastos.</xsd:documentation>
                            </xsd:annotation>
                            <xsd:complexType>
                              <xsd:sequence>
                                <xsd:element name="certificadoGastos" minOccurs="0"
                                             maxOccurs="unbounded">
                                  <xsd:complexType>
                                    <xsd:sequence>
                                      <xsd:group ref="grupoCertAutoCert">
                                        <xsd:annotation>
                                          <xsd:documentation xml:lang="es">Certificado de gastos.</xsd:documentation>
                                        </xsd:annotation>
                                      </xsd:group>
                                    </xsd:sequence>
                                  </xsd:complexType>
                                </xsd:element>
                              </xsd:sequence>
                            </xsd:complexType>
                          </xsd:element>
                          <xsd:element name="motivRectif" type="MotivRectifNoRequerido">
                            <xsd:annotation>
                                <xsd:documentation xml:lang="es">Motivo de la rectificación del certificado de operación para la AC.</xsd:documentation>
                            </xsd:annotation>
                          </xsd:element>
                          <xsd:element name="rectificacion" type="SiNoRequerido">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">Indica si es o no una rectificación de gastos.</xsd:documentation>
                            </xsd:annotation>
                          </xsd:element>
                          <xsd:element name="obsRectif">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">Observaciones de la rectificación de gastos.</xsd:documentation>
                            </xsd:annotation>
                            <xsd:simpleType>
                              <xsd:restriction base="xsd:string">
                                <xsd:minLength value="0"/>
                                <xsd:maxLength value="2000"/>
                              </xsd:restriction>
                            </xsd:simpleType>
                          </xsd:element>             
                          <xsd:element name="reintegroRecuperacion" type="SiNoRequerido">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">Indica si es o no un reintegro por recuperación.</xsd:documentation>
                            </xsd:annotation>
                          </xsd:element>             
                          <!--xsd:element name="esRectifAnti" type="SiNoRequerido">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">Indica si es o no una rectificación por anticipo.</xsd:documentation>
                            </xsd:annotation>
                          </xsd:element-->                                          
                          <xsd:element name="socios" minOccurs="0"
                                       maxOccurs="1">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">No es obligatorio
                                                               cuando se trata
                                                               de un certificado
                                                               para autoridad
                                                               certificación que
                                                               ya existe.</xsd:documentation>
                            </xsd:annotation>
                            <xsd:complexType>
                              <xsd:sequence>
                                <xsd:element name="socio" minOccurs="1"
                                             maxOccurs="unbounded">
                                  <xsd:complexType>
                                    <xsd:sequence>
                                      <xsd:group ref="grupoOrganismo">
                                        <xsd:annotation>
                                          <xsd:documentation xml:lang="es">Socio.</xsd:documentation>
                                        </xsd:annotation>
                                      </xsd:group>
                                      <xsd:group ref="grupoCostes">
                                        <xsd:annotation>
                                          <xsd:documentation xml:lang="es">Costes
                                                                           del
                                                                           socio.</xsd:documentation>
                                        </xsd:annotation>
                                      </xsd:group>
                                    </xsd:sequence>
                                  </xsd:complexType>
                                </xsd:element>
                              </xsd:sequence>
                            </xsd:complexType>
                          </xsd:element>
                        </xsd:sequence>
                      </xsd:complexType>
                    </xsd:element>
                    <xsd:element name="certAutoCertValorAnterior">
                      <xsd:complexType>
                        <xsd:sequence>
                          <xsd:element name="codPOperativo">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">Código del
                                                               programa
                                                               operativo.</xsd:documentation>
                            </xsd:annotation>
                            <xsd:simpleType>
                              <xsd:restriction base="xsd:string">
                                <xsd:minLength value="1"/>
                                <xsd:maxLength value="10"/>
                              </xsd:restriction>
                            </xsd:simpleType>
                          </xsd:element>
                          <xsd:element name="codEje">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">Código del eje
                                                               asociado al
                                                               programa
                                                               operativo.</xsd:documentation>
                            </xsd:annotation>
                            <xsd:simpleType>
                              <xsd:restriction base="xsd:string">
                                <xsd:minLength value="1"/>
                                <xsd:maxLength value="2"/>
                              </xsd:restriction>
                            </xsd:simpleType>
                          </xsd:element>
                          <xsd:element name="codOperacion"
                                       type="CodigoOperacionRequerido">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">Código de la
                                                               operación para
                                                               autoridad
                                                               certificación.</xsd:documentation>
                            </xsd:annotation>
                          </xsd:element>
                          <xsd:element name="codCertificado"
                                       type="CodigoCertificadoRequerido">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">Código del
                                                               certificado para
                                                               autoridad
                                                               certificación.</xsd:documentation>
                            </xsd:annotation>
                          </xsd:element>
                          <xsd:element name="fechaCertificado"
                                       type="FechaRequerida">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">Fecha del
                                                               certificado para
                                                               autoridad
                                                               certificación.</xsd:documentation>
                            </xsd:annotation>
                          </xsd:element>
                          <xsd:element name="gastoAsistTecnica"
                                       type="ImportePosNegRequerido">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">Gasto de
                                                               asisténcia técnca.</xsd:documentation>
                            </xsd:annotation>
                          </xsd:element>
                          <xsd:element name="codControl" type="CodigoControlNoRequerido">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">Código del control asociado.</xsd:documentation>
                            </xsd:annotation>
                          </xsd:element>                          
                          <xsd:element name="certificadosGastosModif" minOccurs="0" maxOccurs="1">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">Es obligatorio cuando se
                                                               trata de una rectificación de gastos.</xsd:documentation>
                            </xsd:annotation>
                            <xsd:complexType>
                              <xsd:sequence>
                                <xsd:element name="certificadoGastos" minOccurs="0"
                                             maxOccurs="unbounded">
                                  <xsd:complexType>
                                    <xsd:sequence>
                                      <xsd:group ref="grupoCertAutoCert">
                                        <xsd:annotation>
                                          <xsd:documentation xml:lang="es">Certificado de gastos.</xsd:documentation>
                                        </xsd:annotation>
                                      </xsd:group>
                                    </xsd:sequence>
                                  </xsd:complexType>
                                </xsd:element>
                              </xsd:sequence>
                            </xsd:complexType>
                          </xsd:element>
                          <xsd:element name="motivRectif" type="MotivRectifNoRequerido">
                            <xsd:annotation>
                                <xsd:documentation xml:lang="es">Motivo de la rectificación del certificado de operación para la AC.</xsd:documentation>
                            </xsd:annotation>
                          </xsd:element>
                          <xsd:element name="rectificacion" type="SiNoRequerido">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">Indica si es o no una rectificación de gastos.</xsd:documentation>
                            </xsd:annotation>
                          </xsd:element>
                          <xsd:element name="obsRectif">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">Observaciones de la rectificación de gastos.</xsd:documentation>
                            </xsd:annotation>
                            <xsd:simpleType>
                              <xsd:restriction base="xsd:string">
                                <xsd:minLength value="0"/>
                                <xsd:maxLength value="2000"/>
                              </xsd:restriction>
                            </xsd:simpleType>
                          </xsd:element>             
                          <xsd:element name="reintegroRecuperacion" type="SiNoRequerido">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">Indica si es o no un reintegro por recuperación.</xsd:documentation>
                            </xsd:annotation>
                          </xsd:element>             
                          <!--xsd:element name="esRectifAnti" type="SiNoRequerido">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">Indica si es o no una rectificación por anticipo.</xsd:documentation>
                            </xsd:annotation>
                          </xsd:element-->                                          
                          <xsd:element name="socios" minOccurs="0"
                                       maxOccurs="1">
                            <xsd:annotation>
                              <xsd:documentation xml:lang="es">No es obligatorio
                                                               cuando se trata
                                                               de un certificado
                                                               para autoridad
                                                               certificación que
                                                               ya existe.</xsd:documentation>
                            </xsd:annotation>
                            <xsd:complexType>
                              <xsd:sequence>
                                <xsd:element name="socio" minOccurs="1"
                                             maxOccurs="unbounded">
                                  <xsd:complexType>
                                    <xsd:sequence>
                                      <xsd:group ref="grupoOrganismo">
                                        <xsd:annotation>
                                          <xsd:documentation xml:lang="es">Socio.</xsd:documentation>
                                        </xsd:annotation>
                                      </xsd:group>
                                      <xsd:group ref="grupoCostes">
                                        <xsd:annotation>
                                          <xsd:documentation xml:lang="es">Costes
                                                                           del
                                                                           socio.</xsd:documentation>
                                        </xsd:annotation>
                                      </xsd:group>
                                    </xsd:sequence>
                                  </xsd:complexType>
                                </xsd:element>
                              </xsd:sequence>
                            </xsd:complexType>
                          </xsd:element>
                        </xsd:sequence>
                      </xsd:complexType>
                    </xsd:element>
                  </xsd:sequence>
                </xsd:complexType>
              </xsd:element>
              <xsd:element name="certAutoCert" minOccurs="0"
                           maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation xml:lang="es">Indica el certificado
                                               para autoridad
                                               certificación y los socios
                                               de la misma que
                                               se han borrado.</xsd:documentation>                 
                </xsd:annotation>                           
                <xsd:complexType>
                  <xsd:sequence>
                    <xsd:element name="codPOperativo">
                      <xsd:annotation>
                        <xsd:documentation xml:lang="es">Código del programa
                                                         operativo.</xsd:documentation>
                      </xsd:annotation>
                      <xsd:simpleType>
                        <xsd:restriction base="xsd:string">
                          <xsd:minLength value="1"/>
                          <xsd:maxLength value="10"/>
                        </xsd:restriction>
                      </xsd:simpleType>
                    </xsd:element>
                    <xsd:element name="codOperacion"
                                 type="CodigoOperacionRequerido">
                      <xsd:annotation>
                        <xsd:documentation xml:lang="es">Código de la operación
                                                         para autoridad
                                                         certificación.</xsd:documentation>
                      </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="codCertificado"
                                 type="CodigoCertificadoRequerido">
                      <xsd:annotation>
                        <xsd:documentation xml:lang="es">Código del certificado
                                                         para autoridad
                                                         certificación.</xsd:documentation>
                      </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="fechaCertificado" type="FechaRequerida">
                      <xsd:annotation>
                        <xsd:documentation xml:lang="es">Fecha del certificado
                                                         para autoridad
                                                         certificación.</xsd:documentation>
                      </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="gastoAsistTecnica"
                                 type="ImportePosNegRequerido">
                      <xsd:annotation>
                        <xsd:documentation xml:lang="es">Gasto de asisténcia
                                                         técnca.</xsd:documentation>
                      </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="codCertModif"
                                 type="CodigoCertificadoNoRequerido">
                      <xsd:annotation>
                        <xsd:documentation xml:lang="es">Código del certificado
                                                         para autoridad
                                                         certificación a
                                                         modificar.</xsd:documentation>
                      </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="motivoModif">
                      <xsd:annotation>
                        <xsd:documentation xml:lang="es">Motivo de la
                                                         modificación del
                                                         certificado para
                                                         autoridad certificación.</xsd:documentation>
                      </xsd:annotation>
                      <xsd:simpleType>
                        <xsd:restriction base="xsd:string">
                          <xsd:minLength value="0"/>
                          <xsd:maxLength value="2000"/>
                        </xsd:restriction>
                      </xsd:simpleType>
                    </xsd:element>
                    <xsd:element name="rectificacion" type="SiNoRequerido">
                      <xsd:annotation>
                        <xsd:documentation xml:lang="es">Indica si es o no una rectificación de gastos.</xsd:documentation>
                      </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="obsRectif">
                      <xsd:annotation>
                        <xsd:documentation xml:lang="es">Observaciones de la rectificación de gastos.</xsd:documentation>
                      </xsd:annotation>
                      <xsd:simpleType>
                        <xsd:restriction base="xsd:string">
                          <xsd:minLength value="0"/>
                          <xsd:maxLength value="2000"/>
                        </xsd:restriction>
                      </xsd:simpleType>
                    </xsd:element>                       
                    <xsd:element name="socios" minOccurs="0" maxOccurs="1">
                      <xsd:annotation>
                        <xsd:documentation xml:lang="es">Indica el o los socios
                                                           que se han borrado
                                                           de un certificado
                                                           para autoridad
                                                           certificación que
                                                           también se ha borrado.</xsd:documentation>
                      </xsd:annotation>
                      <xsd:complexType>
                        <xsd:sequence>
                          <xsd:element name="socio" minOccurs="1"
                                       maxOccurs="unbounded">
                            <xsd:complexType>
                              <xsd:sequence>
                                <xsd:group ref="grupoOrganismo">
                                  <xsd:annotation>
                                    <xsd:documentation xml:lang="es">Socio.</xsd:documentation>
                                  </xsd:annotation>
                                </xsd:group>
                              </xsd:sequence>
                            </xsd:complexType>
                          </xsd:element>
                        </xsd:sequence>
                      </xsd:complexType>
                    </xsd:element>
                  </xsd:sequence>
                </xsd:complexType>
              </xsd:element>
            </xsd:sequence>
          </xsd:complexType>
        </xsd:element>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
</xsd:schema>