I'm using Xerces 1.4.2, and the following schema gave me the following error: ---------------------------------------------------- <?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="foo" xmlns="foo"> <xs:complexType name="B"> <xs:sequence> <xs:element name="foo" type="empty"/> </xs:sequence> </xs:complexType> <xs:complexType name="Dr" block="restriction"> <xs:complexContent> <xs:restriction base="B"> <xs:sequence> <xs:element name="foo" type="empty"/> </xs:sequence> </xs:restriction> </xs:complexContent> </xs:complexType> <xs:complexType name="empty" /> </xs:schema> ---------------------------------------------------- Schema error: ComplexType 'foo,Dr': rcase-nameAndTypeOK.6: Derived element foo has a type that does not derive from that of the base. ---------------------------------------------------- But I don't think this schema violates rcase-nameAndTypeOK constraint. Does it? regards, -- Kohsuke KAWAGUCHI +1 650 786 0721 Sun Microsystems [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
