I downloaded the TurboXML editor to test the differences I found between 
Xerces and XMLSpy. It seems like TurboXML works like XMLSpy in this matter. I 
was allowed to construct the schema below with TurboXML.

Does this mean that both XMLSpy and TurboXML have implemented the spec 
incorrectly?

/Peter

<?xml version = "1.0" encoding = "UTF-8"?>
<!--Generated by Turbo XML 2.3.0.100. Conforms to w3c 
http://www.w3.org/2001/XMLSchema-->
<xsd:schema xmlns:xsd = "http://www.w3.org/2001/XMLSchema";
         elementFormDefault = "qualified">
        <xsd:element name = "Not">
                <xsd:complexType>
                        <xsd:simpleContent>
                                <xsd:restriction base = "xsd:string">
                                        <xsd:enumeration value = "FOOOO"/>
                                        <xsd:enumeration value = "BAAAR"/>
                                        <xsd:enumeration value = "KAKAKAK"/>
                                        <xsd:attribute name = "OrderID" use = 
"required" type = "xsd:string"/>
                                </xsd:restriction>
                        </xsd:simpleContent>
                </xsd:complexType>
        </xsd:element>
</xsd:schema>

-------------

> >
> > This is not valid according to the spec :
> >
> > [[
> > Schema Component Constraint: Complex Type Definition Properties Correct
> >              All of the following must be true:
> >              1 The values of the properties of a complex type definition
> > must be as described in the property tableau in The Complex Type
> > Definition Schema Component (�3.4.1), modulo the impact of Missing
> > Sub-components (�5.3).
> >              2 If the {base type definition} is a simple type definition,
> >                the {derivation method} must be extension.
> >              3 ...
> > ]]
> >
> > The second point says that simple type definitions should be derived by
> > extension.
> >
> > HTH
> > -Pavani
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to