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

AW: Xerces problem

From: Horti, Andras <andras.horti@joanneum.at>
Date: Fri, 10 Jan 2003 10:59:12 +0100
Message-ID: <A6C43780FFDFFF44803C1E5DB704CE22528B1E@iis-mail.joanneum.ac.at>
To: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>

I changed the line:
  <xs:complexType>
to
  <xs:complexType name="Personnel Type">

According to XMLSchema definition should be valid.


> -----Ursprüngliche Nachricht-----
> Von: Lemmin, Harald [mailto:Harald.Lemmin@softwareag.com]
> Gesendet: Freitag, 10. Jänner 2003 10:36
> An: 'xmlschema-dev@w3.org'
> Betreff: RE: Xerces problem
> 
> 
> 
> Where did you extend the name attribute?
> 
> The schema should look like this:
>   <xs:element name = "personnel">
>     <xs:complexType>
>       <xs:complexContent>
>         <xs:extension base = "person">
>           <xs:attribute name = "name" type = 
> "xs:string"></xs:attribute>
>         </xs:extension>
>       </xs:complexContent>
>     </xs:complexType>
>   </xs:element>
> 
> 
> 
> -----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 ?
> 
> 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 04:59:41 GMT

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