W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2001

simpleContent and restriction

From: Arnaud Blandin <blandin@intalio.com>
Date: Wed, 31 Jan 2001 11:29:21 -0800
To: <xmlschema-dev@w3.org>
Message-ID: <EPEKKOODJFPGIAOKHAEEOEGFCLAA.blandin@intalio.com>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:19 GMT