All,
It seems to me that this should be a valid XSD:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://schemas.fundevs.com/1/asgard"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://schemas.fundevs.com/1/asgard"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
id="TestSuite">
<xs:complexType name="Column">
<xs:all>
<xs:element name="name" type="xs:string"/>
</xs:all>
</xs:complexType>
<xs:complexType name="OutputColumn">
<xs:complexContent>
<xs:extension base="Column">
<xs:all>
<xs:element name="tolerance" type="xs:decimal"/>
</xs:all>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:schema>
But I am receiving the following error from the parser:
cos-all-limited.1.2: An 'all' model group must appear in a particle
with {min occurs} = {max occurs} = 1, and that particle must be part
of a pair which constitutes the {content type} of a complex type
definition.
Can someone explain to me why this is incorrect?
Jeffrey A. Lage | Fund Development Services
440 Park Avenue South | 14th Floor | New York | NY | 10016 | email:
[EMAIL PROTECTED] | office: 212.920.3527 | mobile:
917.536.1767