users@jaxb.java.net

Problem with xsd:extension

From: David Heath <dheath_at_lgc.com>
Date: Wed, 19 Mar 2003 13:55:21 -0600

I have a simple schema that used to work with all versions of JAXB except
the RELEASE version. It defines a simple base type with a single attribute
and then extents 2 other types from it.

  <xsd:complexType name="flowElementBaseType">
    <xsd:attribute name="name" type="xsd:string" use="required"/>
  </xsd:complexType>

  <xsd:complexType name="flowType">
    <xsd:complexContent>
      <xsd:extension base="flowElementBaseType">
        <xsd:sequence>
        ...
(See attached file for more details)

When I load the following XML file:

<flows>
  <jythonScript name="alg1" scriptFile="test1.py"/>

  <flow name="flow1">
    <jythonScript name="alg1" scriptFile="test1.py"/>
  </flow>
</flows>

It complains:

Error: unexpected attribute "name", Line: 4, Column: 22


Any help or thoughts would be a appreciated.

Thanks

David Heath


 <<fred.xsd>> <<fred1.xml>>