<?xml version="1.0" encoding="ISO-8859-2"?>
<schema targetNamespace="http://www.e-cegjegyzek.hu/2014/cegtorvenyessegi#" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:mireg="http://mireg.org/schema/1.0/" xmlns:xades="http://uri.etsi.org/01903/v1.2.2#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:es="http://www.e-cegjegyzek.hu/2014/cegtorvenyessegi#" elementFormDefault="qualified">
	<import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd"/>
	<import namespace="http://uri.etsi.org/01903/v1.2.2#" schemaLocation="XAdES.xsd"/>
	<import namespace="http://mireg.org/schema/1.0/" schemaLocation="metadata.xsd"/>
	<element name="Dossier">
		<complexType>
			<sequence>
				<element name="DossierProfile">
					<complexType>
						<sequence>
							<element name="Title">
								<simpleType>
									<restriction base="string">
										<enumeration value="Kérelem"/>
										<enumeration value="Egyéb beadvány"/>
									</restriction>
								</simpleType>
							</element>
							<element name="E-category">
								<simpleType>
									<restriction base="string">
										<enumeration value="electronic dossier"/>
										<enumeration value="electronic acknowledgement"/>
										<enumeration value="elektronikus akta"/>
										<enumeration value="elektronikus átvételi elismervény"/>
									</restriction>
								</simpleType>
							</element>
							<element name="CreationDate" type="dateTime"/>
							<element name="Cégjegyzékszám" minOccurs="0">
								<complexType>
									<simpleContent>
										<extension base="es:CégjegyzékszámType">
											<attribute name="Custom" type="boolean" use="required" fixed="true"/>
										</extension>
									</simpleContent>
								</complexType>
							</element>
							<element name="Cégnév" minOccurs="0">
								<complexType>
									<simpleContent>
										<extension base="string">
											<attribute name="Custom" type="boolean" use="required" fixed="true"/>
										</extension>
									</simpleContent>
								</complexType>
							</element>
							<element name="Cégszékhely" minOccurs="0">
								<complexType>
									<simpleContent>
										<extension base="string">
											<attribute name="Custom" type="boolean" use="required" fixed="true"/>
										</extension>
									</simpleContent>
								</complexType>
							</element>
						</sequence>
						<attribute name="Id" type="string"/>
						<attribute name="OBJREF" type="string"/>
					</complexType>
				</element>
				<element name="Documents">
					<complexType>
						<sequence>
							<element ref="es:Document" minOccurs="0" maxOccurs="unbounded"/>
						</sequence>
						<attribute name="Id" type="string" use="required" fixed="Object0"/>
					</complexType>
				</element>
				<choice minOccurs="0" maxOccurs="unbounded">
					<element ref="ds:Signature"/>
					<element name="TimeStamp" type="xades:TimeStampType"/>
				</choice>
			</sequence>
			<attribute name="AckEmail">
				<simpleType>
					<restriction base="string">
						<pattern value="([^@]+@[^\.]+\..+)?"/>
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="Location" type="string"/>
		</complexType>
	</element>
	<simpleType name="CégjegyzékszámType">
		<restriction base="string">
			<pattern value="[0-9]{2}-[0-9]{2}-[0-9]{6}"/>
		</restriction>
	</simpleType>
	<element name="Document">
		<complexType>
			<sequence>
				<element name="DocumentProfile">
					<complexType>
						<sequence>
							<element name="Title">
								<simpleType>
									<restriction base="string">
										<pattern value="Űrlap">
											<annotation>
												<appinfo>1. </appinfo>
											</annotation>
										</pattern>
										<pattern value="Kérelem">
											<annotation>
												<appinfo>1. </appinfo>
											</annotation>
										</pattern>
										<pattern value="A jogi képviselő meghatalmazása, illetve képviseleti jogának igazolása">
											<annotation>
												<appinfo>1. </appinfo>
											</annotation>
										</pattern>
										<pattern value="Hiánypótlás">
											<annotation>
												<appinfo>1. </appinfo>
											</annotation>
										</pattern>
										<pattern value="Fellebbezés">
											<annotation>
												<appinfo>1. </appinfo>
											</annotation>
										</pattern>
										<pattern value="Igazolási kérelem">
											<annotation>
												<appinfo>1. </appinfo>
											</annotation>
										</pattern>
										<pattern value="Fellebbezés">
											<annotation>
												<appinfo>1. </appinfo>
											</annotation>
										</pattern>
										<pattern value="Kijavítás iránti kérelem">
											<annotation>
												<appinfo>1. </appinfo>
											</annotation>
										</pattern>
										<pattern value="Felülvizsgálati kérelem">
											<annotation>
												<appinfo>1. </appinfo>
											</annotation>
										</pattern>
										<pattern value="Kifogás">
											<annotation>
												<appinfo>1. </appinfo>
											</annotation>
										</pattern>
										<pattern value="Ellenkérelem">
											<annotation>
												<appinfo>1. </appinfo>
											</annotation>
										</pattern>
										<pattern value="Jegyzőkönyv">
											<annotation>
												<appinfo>1. </appinfo>
											</annotation>
										</pattern>
										<pattern value="Egyéb irat">
											<annotation>
												<appinfo>1. </appinfo>
											</annotation>
										</pattern>
										<pattern value="Melléklet">
											<annotation>
												<appinfo>1. </appinfo>
											</annotation>
										</pattern>
                    <pattern value="Az illeték megfizetésének igazolása">
                      <annotation>
                        <appinfo>1. </appinfo>
                      </annotation>
                    </pattern>
									</restriction>
								</simpleType>
							</element>
							<element name="E-category" minOccurs="0"/>
							<element name="CreationDate" type="dateTime"/>
							<element ref="es:Format"/>
							<element name="MimeChecked" minOccurs="0">
								<complexType>
									<simpleContent>
										<extension base="boolean">
											<attribute name="executed" type="boolean" use="required"/>
										</extension>
									</simpleContent>
								</complexType>
							</element>
							<element ref="es:SourceSize"/>
							<element ref="es:BaseTransform"/>
							<element name="RecipientCertificateList" minOccurs="0">
								<complexType>
									<sequence>
										<element name="RecipientCertificate" maxOccurs="unbounded"/>
									</sequence>
								</complexType>
							</element>
							<element name="Metadata" minOccurs="0">
								<complexType>
									<sequence>
										<element ref="mireg:metadata"/>
									</sequence>
									<attribute name="Custom" type="boolean" use="required" fixed="true"/>
								</complexType>
							</element>
						</sequence>
						<attribute name="Id" type="string"/>
						<attribute name="OBJREF" type="string"/>
					</complexType>
				</element>
				<element ref="ds:Object"/>
				<choice minOccurs="0" maxOccurs="unbounded">
					<element ref="ds:Signature"/>
					<element name="TimeStamp" type="xades:TimeStampType"/>
				</choice>
			</sequence>
		</complexType>
	</element>
	<element name="E-category">
		<simpleType>
			<restriction base="string">
				<enumeration value="electronic data"/>
				<enumeration value="electronic document"/>
				<enumeration value="electronic record"/>
				<enumeration value="elektronikus adat"/>
				<enumeration value="elektronikus dokumentum"/>
				<enumeration value="elektronikus irat"/>
			</restriction>
		</simpleType>
	</element>
	<element name="Format">
		<complexType>
			<sequence>
				<element name="MIME-Type">
					<complexType>
						<attribute name="type" use="required"/>
						<attribute name="subtype" use="required"/>
						<attribute name="extension" use="required"/>
						<attribute name="charSet"/>
					</complexType>
				</element>
			</sequence>
		</complexType>
	</element>
	<element name="SourceSize">
		<complexType>
			<attribute name="sizeValue" type="integer" use="required"/>
			<attribute name="sizeUnit" use="required" fixed="B"/>
		</complexType>
	</element>
	<element name="BaseTransform">
		<complexType>
			<sequence maxOccurs="unbounded">
				<element name="Transform">
					<complexType>
						<attribute name="Algorithm">
							<simpleType>
								<restriction base="string">
									<enumeration value="zip"/>
									<enumeration value="encrypt"/>
									<enumeration value="base64"/>
								</restriction>
							</simpleType>
						</attribute>
					</complexType>
				</element>
			</sequence>
		</complexType>
	</element>
	<element name="SignatureProfile">
		<complexType>
			<sequence>
				<element name="SignerName" type="string"/>
				<element name="SDPresented" type="boolean" minOccurs="0"/>
				<element name="Type">
					<simpleType>
						<restriction base="string">
							<enumeration value="signature"/>
							<enumeration value="countersignature"/>
							<enumeration value="aláírás"/>
							<enumeration value="ellenjegyzés"/>
						</restriction>
					</simpleType>
				</element>
				<element name="Generator">
					<complexType>
						<sequence>
							<element name="Program">
								<complexType>
									<attribute name="name"/>
									<attribute name="version"/>
								</complexType>
							</element>
							<element name="Device" minOccurs="0">
								<complexType>
									<attribute name="name"/>
									<attribute name="type"/>
								</complexType>
							</element>
						</sequence>
					</complexType>
				</element>
				<element name="Comment" minOccurs="0">
					<complexType mixed="true">
						<sequence>
							<element name="Document" minOccurs="0">
								<complexType>
									<sequence>
										<element name="DocumentProfile">
											<complexType>
												<sequence>
													<element name="Title" type="string"/>
													<element name="CreationDate" type="dateTime"/>
													<element ref="es:Format"/>
													<element name="MimeChecked" minOccurs="0">
														<complexType>
															<simpleContent>
																<extension base="boolean">
																	<attribute name="executed" type="boolean" use="required"/>
																</extension>
															</simpleContent>
														</complexType>
													</element>
													<element ref="es:SourceSize"/>
													<element ref="es:BaseTransform"/>
												</sequence>
												<attribute name="Id" type="string"/>
												<attribute name="OBJREF" type="string"/>
											</complexType>
										</element>
										<element ref="ds:Object"/>
									</sequence>
								</complexType>
							</element>
						</sequence>
						<attribute name="Type">
							<simpleType>
								<restriction base="string">
									<enumeration value="clause"/>
									<enumeration value="gloss"/>
									<enumeration value="comment"/>
									<enumeration value="opinion"/>
									<enumeration value="záradék"/>
									<enumeration value="széljegyzet"/>
									<enumeration value="megjegyzés"/>
									<enumeration value="vélemény"/>
								</restriction>
							</simpleType>
						</attribute>
					</complexType>
				</element>
			</sequence>
			<attribute name="Id" type="string"/>
			<attribute name="OBJREF" type="string"/>
			<attribute name="SIGREF" type="string"/>
			<attribute name="SIGREFLIST" type="string"/>
		</complexType>
	</element>
</schema>
