Just having a look right now ....

Werner

Michael Mendonca wrote:
Hi Werner,
Thanks for your response. I have created a Jira issue here
http://jira.codehaus.org/browse/CASTOR-2299 and attached the 2 schemas
and binding file.
Michael

-----Original Message-----
From: Werner Guttmann [mailto:[EMAIL PROTECTED] Sent: Thursday, February 14, 2008 3:28 PM
To: [email protected]
Subject: Re: [castor-user] Binding file syntax or Castor 1.2 bug

Michael,

I'd need a set of XML schema files that I can use to replay the problem.

Can you please create a new Jira issue and attach all relevant files ?

Thanks
Werner

Michael Mendonca wrote:
Hi,

I am trying to use a binding file to resolve a name conflict I am getting when generating source for a particular schema. My schema/binding-file details are below.

My problem is that in the generated class
"AnotherComplexTypeExtention",
I should have a member variable called "name2" of type Boolean. No variable gets generated for the class

"AnotherComplexTypeExtention". Please check the binding-file syntax below. Am I using the right syntax in the binding file to resolve the name conflict or is this a bug in Castor? I am

using Castor ver. 1.2.
<complexType name="anotherComplexType">

                        <sequence>

                                    <element
name="simpleResComplexType"
type="ez5120:complexComplexType"/>

                                    <element name="name"
type="string"/>
                        </sequence>

                        <attribute name="elementName" type="string"/>

            </complexType>

<complexType name="AnotherComplexTypeExtention">

            <complexContent>

                        <extension base="ez5120:anotherComplexType">

                                    <sequence>

<!-- Refers to the name element in schema fragment shown below from another schema -->

<element ref="mm:name"/>

                                                </sequence>

                        </extension>

            </complexContent>

</complexType>

<!-- Declared in another schema with a different namespace -->

<xs:element name="name" type="xs:boolean">

</xs:element>

My binding-file looks as below:

<cbf:complexTypeBinding
name="/complexType:AnotherComplexTypeExtention">
            <cbf:java-class name="AnotherComplexTypeExtention"/>

            <cbf:elementBinding name="/name">

                        <cbf:member name="name2"/>

            </cbf:elementBinding>

</cbf:complexTypeBinding>

Any help is greatly appreciated!

Thanks,

Michael



---------------------------------------------------------------------
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





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

   http://xircles.codehaus.org/manage_email


Reply via email to