<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://reference.e-government.gv.at/namespace/moa/20020822#/xmllpr20030814" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://reference.e-government.gv.at/namespace/moa/20020822#/xmllpr20030814" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:element name="MOAIdentities" >
		<xs:annotation>
			<xs:documentation>MOAIdentities provides a mapping from identities to parameters used in the XMLLoginParameterResolver of MOA-ID</xs:documentation>
		</xs:annotation>
	</xs:element>
	
	<xs:element name="MappingType">
	<xs:complexType>
		<xs:sequence maxOccurs="unbounded">
			<xs:element name="Identity">
				<xs:complexType>
					<xs:choice>
						<xs:element name="NamedIdentity" type="tns:NamedIdentityType"/>
						<xs:element name="bPKIdentity" type="tns:bPKIdentitiyType"/>
					</xs:choice>
				</xs:complexType>
			</xs:element>
			<xs:element name="Parameters" type="tns:ParametersType"/>
		</xs:sequence>
	</xs:complexType>
	</xs:element>
	
	<xs:complexType name="bPKIdentitiyType">
		<xs:simpleContent>
			<xs:extension base="xs:boolean">
				<xs:attribute name="bPK" type="xs:string" use="required"/>
			</xs:extension>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType name="NamedIdentityType">
		<xs:simpleContent>
			<xs:extension base="xs:boolean">
				<xs:attribute name="SurName" type="xs:string" use="required"/>
				<xs:attribute name="GivenName" type="xs:string" use="required"/>
				<xs:attribute name="BirthDate" type="xs:string" use="optional"/>
			</xs:extension>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType name="ParametersType">
		<xs:attribute name="UN" type="xs:string" use="optional"/>
		<xs:attribute name="PW" type="xs:string" use="optional"/>
	</xs:complexType>

</xs:schema>