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

RE: Xerces problem

From: Lemmin, Harald <Harald.Lemmin@softwareag.com>
Date: Fri, 10 Jan 2003 10:36:03 +0100
Message-ID: <DFF2AC9E3583D511A21F0008C7E6210601E3ABB3@daemsg02.software-ag.de>
To: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>

Where did you extend the name attribute?

The schema should look like this:
  <xs:element name = "personnel">
        <xs:extension base = "person">
          <xs:attribute name = "name" type = "xs:string"></xs:attribute>

-----Original Message-----
From: Horti, Andras [mailto:andras.horti@joanneum.at]
Sent: Freitag, 10. Januar 2003 09:04
To: xmlschema-dev@w3.org
Subject: 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 ?


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

D:\xerces-2_2_1\samples>java -classpath
_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 04:37:51 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:59 UTC