W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2003

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

From: Svend Bent Nielsen <jawsoap@hotmail.com>
Date: Thu, 23 Oct 2003 13:22:41 +0000
To: xmlschema-dev@w3.org
Message-ID: <BAY7-F28FZ0stgr3SU000036532@hotmail.com>

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 GMT

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