- From: Nadine Farid <nadine.farid@dai-labor.de>
- Date: Thu, 26 Jun 2003 11:50:42 +0200
- To: <xmlschema-dev@w3.org>
- Message-ID: <D5C61BB48593F742BB232E748D85524830C27B@birke.aot.cs.tu-berlin.de>
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/20
01/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 05:52:18 UTC