Witam.

Załużmy że mój program akceptuje np takiego xml'a:

<Block>
	<Block>
		<PrintMessage/>
		<Block>
			<PrintMessage />
			<PrintMessage />
		</Blok>
	</Block>
	<Block>
		<PrintMessage />
		<PrintMessage />
	</Block>
</Block>

I teraz próbuje dla tego typu xml'ków ułożyć XML Schema:

<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema">

	<group name="Statement">
		<choice>
		
			<element name="Block">
				<complexType>
					<sequence>
						<element ref="Statement" maxOccurs="unbounded" />
					</sequence>
				</complexType>
			</element>
			
			<element name="PrintMessage">
				
			</element>
		
		</choice>
	</group>

</schema>

Ale tu pojawia mi się błąd w schemie typu:

src-resolve.4.2: Error resolving component 'Statement'. It was detected that 'Statement' is in
namespace 'http://www.w3.org/2001/XMLSchema', but components from this namespace are
not referenceable from schema document 'file:///home/awalczak/workspace/xmlstacks/src/
info/adamwalczak/xmlstacks/res/lang.xsd'. If this is the incorrect namespace, perhaps the
prefix of 'Statement' needs to be changed. If this is the correct namespace, then an
appropriate 'import' tag should be added to 'file:///home/awalczak/workspace/xmlstacks/src/
info/adamwalczak/xmlstacks/res/lang.xsd'.

I tu że tak powiem treść tego błędu kompletnie do mnie nie przemawia :(
Jakieś sugestie co mogę robić nie tak ?

PS. XML z pojedynczym tagiem <PrintMessage /> jest także akceptowalny przez mój program.