W3C home > Mailing lists > Public > xmlschema-dev@w3.org > April 2004

RE: Beginner's Question - Schema Validation Problem

From: Xan Gregg <Xan.Gregg@jmp.com>
Date: Wed, 7 Apr 2004 14:12:18 -0400
Message-ID: <939FBCFFFF9B0C40BF8B53294E2296DB4AF98F@merc20.na.sas.com>
To: "Ayman El-Geneidy" <aelgeneidy@insightbb.com>, <xmlschema-dev@w3.org>
TurboXML reports that the qos definition is invalid:
 <xsd:element name="qos">
   <xsd:element ref="performance" minOccurs="0" maxOccurs="1"/>
   <xsd:element ref="information" minOccurs="0" maxOccurs="1"/>
   <xsd:element ref="configuration" minOccurs="0" maxOccurs="1"/>
   <xsd:element ref="security" minOccurs="0" maxOccurs="1"/>   
   <xsd:attribute ref="service_key" use="required"/>

Inside of complexType you need something like <xsd:sequence>, which should enclose the <xsd:element>'s, but not the <xsd:attribute>.


From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org] On Behalf Of Ayman El-Geneidy
Sent: Wednesday, April 07, 2004 12:10 PM
To: xmlschema-dev@w3.org
Subject: Re: Beginner's Question - Schema Validation Problem

Thank you very much for replying. I am sorry I have mislead you a little bit with the 'maxOccurs' attribute on the root element. I have found that error a while agao and corrected but I was copying the code snippet I sent from an old version.
Anyway, I have attached the files if you want to have a complete look at the schema. 
Thank you very much for your help. It is highly appreciated.
Received on Wednesday, 7 April 2004 14:12:21 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:04 UTC