Xerces problem

Hi All,

I extended the "personal.xsd" so that the comlexType definition has a name
attribute. Xerces complains about, my understanding is that it is allowed.
Who is right ?

Xsd:

 <xs:element name="personnel">
  <xs:complexType name="Personnel Type">
   <xs:sequence>
     <xs:element ref="person" minOccurs='1' maxOccurs='unbounded'/>
   </xs:sequence>
  </xs:complexType>


Output:
D:\xerces-2_2_1\samples>java -classpath
.;\xerces-2_2_1\xercesImpl.jar;\xerces-2
_2_1\xmlParserAPIs.jar sax.Counter -s -v ..\data\personal-schema.xml
[Error] personal.xsd:5:41: s4s-att-not-allowed: Attribute 'name' cannot
appear in element 'complexType'.

Best Regards
Andras Horti

Received on Friday, 10 January 2003 03:33:29 UTC