<attribute use='prohibited'/> in complex type restrictions

A quick question on the use of <attribute use='prohibited'.../> when
restricting a complexType.

Suppose I have a complexType such as:

<complexType name='base' mixed='true'>
	<sequence>
		<element name='first' type='string'/>
		<element name='second' type='string'/>
	</sequence>
	<attribute name='fixedAttr' fixed='some value' type='string'/>
</complexType>

and I restrict it to prohibit the appearance of the fixedAttr attribute, as
in:

<complexType name='restr' mixed='true'>
	<complexContent>
		<restriction>
			<sequence>
				<element name='first' type='string'/>
				<element name='second' type='string'/>
			</sequence>
			<attribute name='fixedAttr' use='prohibited'
				fixed='some value' type='string'/>
		</restriction>
	</complexContent>
</complexType>

The question is the following, when I say "use='prohibited'", do I need to
include all of the other aspects of the attribute decl from the base type,
or could I just do this with the shorthand below:

<complexType name='restr' mixed='true'>
	<complexContent>
		<restriction>
			<sequence>
				<element name='first' type='string'/>
				<element name='second' type='string'/>
			</sequence>
			<attribute name='fixedAttr' use='prohibited'/>
		</restriction>
	</complexContent>
</complexType>

pvb

Received on Tuesday, 3 July 2001 14:14:06 UTC