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 Erwin Bolwidt <ej...@klomp.org> on 2001/08/02 15:14:34 UTC

Schema problem?

Hello,

I have a problem with a schema using Xerces-J 1.4.2 and I boiled it down
to a small test. I think it should work.
I have no other schema validators than xerces, but the schema checker XSV
says the schema is correct.

The problem seems to be elements that are declared within a complex type
(instead of referenced); they aren't recognized.

If I change the attached schema from:
<xsd:element name="trunk" ...
to <xsd:element ref="trunk" ...
and also define the element "trunk" globally, then it works, but I have a
more complex schema where I don't want to define some elements globabally.


Thanks,
  Erwin Bolwidt