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

<?xml version="1.0" encoding="UTF-8"?>

<root xmlns="http://www.klomp.org/test/2001-08-02";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://www.klomp.org/test/2001-08-02 simple.xsd">

  <trunk>Branch</trunk>
</root>

<?xml version="1.0" encoding="UTF-8"?>

<xsd:schema
  xmlns:xsd="http://www.w3.org/2001/XMLSchema";
  xmlns="http://www.klomp.org/test/2001-08-02";
  targetNamespace="http://www.klomp.org/test/2001-08-02";>

  <xsd:element name="root">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="trunk" type="xsd:string"/>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>

</xsd:schema>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to