- From: Colin Mackenzie <colin@elecmc.com>
- Date: Thu, 26 Jun 2003 10:46:07 +0100
- To: "Nadine Farid" <nadine.farid@dai-labor.de>, <xmlschema-dev@w3.org>
- Message-ID: <PJEOKNCGPHICMMDPMNAJOEIOCHAA.colin@elecmc.com>
move the xsd:attribute after the end of the xsd:sequence
<xsd:element name="service">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="scenario" type="scenario"
maxOccurs="unbounded"/>
<xsd:element name="value" type="xsd:string"/>
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
Colin
-----Original Message-----
From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org]On
Behalf Of Nadine Farid
Sent: 26 June 2003 10:51
To: xmlschema-dev@w3.org
Subject: XSV Problem (Invalid per cvc-complex-type.1.2.4)
Hi,
I am sure this is a silly question, but I don't understand the errors I'm
getting from XSV (Web interface).
There was a similar question in the archives, which didn't make me any
wiser though.
Here is my mini schema:
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="unqualified">
<xsd:element name="service">
<xsd:complexType>
<xsd:attribute name="name" use="required" type="xsd:string"/>
<xsd:sequence>
<xsd:element name="scenario" type="scenario"
maxOccurs="unbounded"/>
<xsd:element name="value" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="scenario">
<xsd:attribute name="name" use="required" type="xsd:string"/>
</xsd:complexType>
</xsd:schema>
And here is what I get:
Problems with the schema-validity of the target
file:///usr/local/XSV/xsvlog/@10707.0uploaded:11:3: Invalid per
cvc-complex-type.1.2.4: element {http://www.w3.org/2001/XMLSchema}:sequence
not allowed here (3) in element
{http://www.w3.org/2001/XMLSchema}:complexType, expecting
[{http://www.w3.org/2001/XMLSchema}:attributeGroup,{http://www.w3.org/2001/X
MLSchema}:attribute,{http://www.w3.org/2001/XMLSchema}:anyAttribute]:
file:///usr/local/XSV/xsvlog/@10707.0uploaded:11:3: Invalid per
src-resolve: undeclared element {http://www.w3.org/2001/XMLSchema}:sequence
As far as I am concerned the sequence element is a legal child for
complexType, so what am I doing wrong?
Thanx,
Nadine
Received on Thursday, 26 June 2003 06:29:08 UTC