You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Kohsuke KAWAGUCHI <ko...@eng.sun.com> on 2001/08/10 01:16:55 UTC
SCC: Particle Restriction OK (Elt:Elt -- NameAndTypeOK)
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 kohsuke.kawaguchi@sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
Re: SCC: Particle Restriction OK (Elt:Elt -- NameAndTypeOK)
Posted by Kohsuke KAWAGUCHI <ko...@eng.sun.com>.
> Hi Kohsuke. This bug has recently been fixed. If you get the latest version
> from CVS, you should be able to see the change.
Thanks for the help.
regards,
--
Kohsuke KAWAGUCHI +1 650 786 0721
Sun Microsystems kohsuke.kawaguchi@sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org