ThomasD: Probleme beim Ableiten eines Schemas

Hi,

ich versuche einen bestehenden ComplexType zu beschränken. Mein XML sieht so aus:

<?xml version="1.0" encoding="UTF-8"?>  
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.test.de/test" targetNamespace="http://www.test.de/test">  
	<attribute name="href" type="anyUri"/>  
	<complexType name="InputReferenceType">  
		<sequence minOccurs="0">  
			<element name="Header" minOccurs="0" maxOccurs="unbounded">  
				<complexType>  
					<attribute name="key" type="string" use="required"/>  
					<attribute name="value" type="string" use="required"/>  
				</complexType>  
			</element>  
			<choice minOccurs="0">  
				<element name="Body" type="anyType"/>  
				<element name="BodyReference">  
					<complexType>  
						<attribute ref="ns1:href" use="required"/>  
					</complexType>  
				</element>  
			</choice>  
		</sequence>  
		<attribute ref="ns1:href" use="required"/>  
		<attribute name="method" use="optional" default="GET">  
			<simpleType>  
				<restriction base="string">  
					<enumeration value="GET"/>  
					<enumeration value="POST"/>  
				</restriction>  
			</simpleType>  
		</attribute>  
	</complexType>  
	<complexType name="test">  
		<complexContent>  
			<restriction base="ns1:InputReferenceType">  
				<sequence minOccurs="0">  
					<element name="Header" minOccurs="0" maxOccurs="unbounded">  
						<complexType>  
							<attribute name="key" type="string" use="required"/>  
							<attribute name="value" type="string" use="required"/>  
						</complexType>  
					</element>  
					<choice minOccurs="0">  
						<element name="Body" type="anyType"/>  
						<element name="BodyReference">  
							<complexType>  
								<attribute ref="ns1:href" use="required"/>  
							</complexType>  
						</element>  
					</choice>  
				</sequence>  
				<attribute ref="ns1:href" use="required"/>  
				<attribute name="method" use="optional" default="GET">  
					<simpleType>  
						<restriction base="string">  
							<enumeration value="GET"/>  
							<enumeration value="POST"/>  
						</restriction>  
					</simpleType>  
				</attribute>  
			</restriction>  
		</complexContent>  
	</complexType>  
</schema>  

Mir ist bewusst, dass im komplexen Type "test" eigentlich keine Beschränkungen vorgenommen werden. Aber selbst wenn ich was beschränken würde (z.B. die Enumeration nur auf "POST"), klappt das Ganze nicht. Ich denke, da ist was generelles falsch. Ich hab schon mit XML-Spy versucht, die Fehler zu bereinigen, aber das hilft auch nicht weiter. Besonders problematisch sind das Attribut "method" und die "sequence".

Hat vielleicht jemand eine Idee? Dazu sei noch bemerkt, dass ich KEINE VERÄNDERUNGEN an dem Ursprungstyp vornehmen kann. Also sind nur Änderungen an dem abgeleiteten Typ möglich.

Vielen Dank schonmal und Gruß
ThomasD