AW: XSV Problem (Invalid per cvc-complex-type.1.2.4)

Thanks, that worked :-)  And what a nice simple solution that was :-)

 

Nadine

 

-----Ursprüngliche Nachricht-----
Von: Colin Mackenzie [mailto:colin@elecmc.com] 
Gesendet: Donnerstag, 26. Juni 2003 11:46
An: Nadine Farid; xmlschema-dev@w3.org
Betreff: RE: XSV Problem (Invalid per cvc-complex-type.1.2.4)

 

 

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/XMLSchema}: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:53:47 UTC