<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://www.pap.meh.es/ficherosxsd/Jus_Indice" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.pap.meh.es/ficherosxsd/Jus_Indice" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd"/>
	<xs:element name="resumen_ficheros" type="resumenFicherosType">
		<xs:annotation>
			<xs:documentation>Contiene el resumen de los ficheros de nóminas</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:complexType name="resumenFicherosType">
		<xs:annotation>
			<xs:documentation>Tipo para el resumen de los ficheros de nóminas</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="fichero" type="ficheroType" maxOccurs="unbounded"/>
			<xs:element ref="ds:Signature" minOccurs="0"/>
		</xs:sequence>
		<xs:attribute name="ID" type="xs:string" use="required" fixed="indice"/>
	</xs:complexType>
	<xs:simpleType name="nombreFicheroType">
		<xs:annotation>
			<xs:documentation>Tipo para un nombre de fichero de nóminas</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	
	<xs:simpleType name="importeComaType">
		<xs:annotation>
			<xs:documentation>Importe con coma para separar dos decimales. Sin separador de miles. Puede tener el signo - al principio.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:whiteSpace value="collapse"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="enteroPuntoType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:complexType name="ficheroType">
		<xs:annotation>
			<xs:documentation>Tipo que contiene los datos de un fichero (resumen) de nómina.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="nombre" type="nombreFicheroType"/>
			<xs:element name="num_empleados" type="enteroPuntoType"/>
			<xs:element name="imp_devengos" type="importeComaType"/>
			<xs:element name="imp_ded_form" type="importeComaType"/>
			<xs:element name="imp_ded" type="importeComaType"/>
		</xs:sequence>
	</xs:complexType>
</xs:schema>
