simpleContent and restriction

Hi,

I have a basic question and I can't find an answer in the XML Schema Specs
nor in the the list archive:

given the following

<complexType>
	<simpleContent>
		<restriction base="type">
			<attribute name="foo2" type="something"/>
		</restriction>
	</simpleContent>
</complexType>

<complexType name="type">
	<simpleContent>
		<extension base="string">
			<attribute name="foo" type="somethingelse"/>
		</extension>
	</simpleContent>
</complexType>

this seems to be allowed and I don't think it should be because
the first 'restriction' acts as an 'extension'.
I am sure I am missing something, could you please help me?

Thanks
Arnaud

Received on Wednesday, 31 January 2001 14:30:53 UTC