Invalid per cvc-complex-type.1.3: undeclared attribute {None}:use

Hello all,

Using http://www.w3.org/2001/03/webdata/xsv for checking my schemas, I get 
the following error "Invalid per cvc-complex-type.1.3: undeclared attribute 
{None}:use" with a link to the (I think) relevant part of the documentation.

Problem is that I don't understand it at all - I have absolutely no idea 
whatsoever as to what it means.

I give an example (which gives one error) below.
Can anyone tell me what is wrong?

If it is solvable, I will be happy for the right syntax too.

Sincerely,
Svend Bent Nielsen

<?xml version="1.0"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
	<element name="A">
		<complexType>
			<all>
				<element ref="B"/>
			</all>
			<attribute ref="TestAtt"/>
		</complexType>
	</element>
	<element name="B">
		<complexType>
			<attribute ref="TestAtt"/>
		</complexType>
	</element>
	<attribute name="TestAtt" use="required">
		<simpleType>
			<restriction base="positiveInteger">
				<enumeration value="1"/>
				<enumeration value="2"/>
			</restriction>
		</simpleType>
	</attribute>
</schema>

_________________________________________________________________
Få alle de nye og sjove ikoner med MSN Messenger http://messenger.msn.dk/

Received on Thursday, 23 October 2003 09:22:42 UTC