xerces-j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Ye" <eri...@locus.apache.org>
Subject Re: content="empty" Error
Date Fri, 04 Aug 2000 20:40:42 GMT
Thanks for reporting this bug, a CMException should never be thrown.  I'll
look into this,
_____


Eric Ye * IBM, JTC - Silicon Valley * ericye@locus.apache.org

----- Original Message -----
From: <GLarkin@syncrasystems.com>
To: <xerces-j-dev@xml.apache.org>
Sent: Friday, August 04, 2000 11:59 AM
Subject: content="empty" Error


> I found what I believe to be a bug in the schema validation process of
> Xerces.  When a parent type is declared to be content="empty", a
CMException
> is thrown any time a derivation of that type is accessed.  The Exception
is
> not thrown when the child type is also explicity content="empty", but I
> don't believe this should be necessary. I have included an example xml and
> xsd which should show the error I am talking about.  I am using a version
of
> Xerces I grabbed from cvs on Wednesday.  Thank you.
> -Greg Larkin, Syncra Systems
> Example.xml:
> <Example xmlns="http://www.example.org/example"
> xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
> xsi:schemaLocation="http://www.example.org/example
> ExampleError.xsd">
> <default name="NAME" default="DEFAULT"/>
> <field name="NAME"/>
> </Example>
>
>
> Example.xsd:
> <schema targetNamespace="http://www.example.org/example"
> xmlns="http://www.w3.org/1999/XMLSchema"
> xmlns:EX="http://www.example.org/example"
> elementFormDefault = "qualified">
> <element name="Example" type="EX:ExampleType"/>
> <complexType name="ExampleType">
> <element name="default" type="EX:DefaultFieldType"/>
> <element name="field" type="EX:FieldType"/>
> </complexType>
> <complexType name="FieldType" content="empty">
> <attribute name="name" type="string"/>
> </complexType>
> <complexType name="DefaultFieldType" base="EX:FieldType"
> derivedBy="extension">
> <attribute name="default" type="string"/>
> </complexType>
> </schema>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
>
>


Mime
View raw message