Hi,

it looks like this is a genuine bug. Can you please create a new Jira issue at

http://jira.codehaus.org/browse/CASTOR

and attach all relevant files to it ? Have a look at the corresponding HOW-TO available at

http://castor.org/how-to-submit-an-xml-bug.html

before doing so.

Regards
Werner

[EMAIL PROTECTED] wrote:
I have another problem with the XML code generation under 1.1.2.1.

Suppose we have this schema:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; elementFormDefault="unqualified">
    <xs:attribute name="Attribute">
        <xs:simpleType>
            <xs:restriction base="xs:NMTOKEN">
                <xs:enumeration value="foo"/>
                <xs:enumeration value="bar"/>
                <xs:enumeration value="baz"/>
            </xs:restriction>
        </xs:simpleType>
    </xs:attribute>
    <xs:element name="Element">
        <xs:complexType>
            <xs:attribute ref="Attribute" use="required"/>
        </xs:complexType>
    </xs:element>
</xs:schema>

When I generate the Java classes (no marshalling) from this schema, I should have an Element class and an ElementAttribute class. However, Element has in its member an "types.AttributeType" and not a types.ElementAttributeType, as it should be.

Any known workarounds for this?

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email




---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to