History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: CASTOR-1374
Type: Test Test
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Vinaya
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
castor

Binding file for xsd:enumeration not generating expected classes

Created: 28/Mar/06 04:40 PM   Updated: 30/Jun/07 04:30 PM
Component/s: XML code generator
Affects Version/s: 0.9.6
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. XML File BindingFDXSubRequest.xml (0.7 kb)
2. XML File FDXSharedBinding.xml (21 kb)
3. XML File FDXSubscriptionRequest.xsd (2 kb)
4. XML File SubReq.xml (1.0 kb)

Environment: JDK1.2.2, castor 0.9.5


 Description  « Hide
Hi,

I have xsds which include a perticular xsd.
When I create the java classes using source generator, it creates classes for the included xsd each time.
How can I avoid this?

The enumeration are not generating expected classes.
They are overwritten. If I don't use a binding file, it gives a compilation error " cyclic inheritence"

I have manipulated generated java classes and created an XML
The XMLs nodes are not of the same case as in xsd. (lower and Upper)

I am attaching all the files here.

Pls advice



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Werner Guttmann - 29/Mar/06 01:33 PM
Just wondering whether there's a particular reason why you are executing this against 0.9.6 ?

Vinaya - 03/Apr/06 03:12 PM
Not really,

But we are using jdk 1.2.2
Initially we had problems with generating the classes. We were under the impression that that is due to castor's versions. hence we started using 0.9.5.


Werner Guttmann - 04/Apr/06 02:24 AM
If I were you, I'd have a look at the release notes (available at http://castor.org/release-notes.html). While it's quite obvious that in the recent past (e.g. all 1.0M? builds) not many XML issues have been fixed, the same is not true for e.g. 0.9.6 and 0.9.7. In other words, I'd consider 0.9.5 a bit outdated ... ;-(.

Werner Guttmann - 29/May/06 04:32 PM
> When I create the java classes using source generator, it creates classes for the included xsd each time.
As far as I know (and my knowledge is quite limited wrt Castor XML ... ;-( ), changing your include statements to be an import statement should do the trick.

Werner Guttmann - 29/May/06 04:34 PM
I honestly don't see the problem with your second question. If you are using a bindings file, everything is fine, correct ? If you do not use a bindings file, you are getting ..what exactly ? Warnings from the source generator ? Compilation errors ? Can you please be a bit more specific ?

Werner Guttmann - 30/May/06 07:06 AM
Just another short comment, as I have amended the JIRA notification scheme in use for Castor.

Werner Guttmann - 14/Jun/06 03:14 AM
Vinaya, is this still an issue at all ?

Werner Guttmann - 12/Sep/06 06:05 AM
Vinaya, can you please attach the missing FDXShared.xsd ?

Edward Kuns - 11/Oct/06 02:46 PM
Downgrading from critical to major. When you have a complex type and an element with the same name you'll get that cyclic inheritence complaint unless you use a mapping file.

Werner Guttmann - 11/Feb/07 11:17 AM
Eddie, how do we go about this now that ...

a) we have automatic class name conflict resolution.
b) binding file support that allows users to e.g. use suffices with complex types, etc.


Edward Kuns - 18/Feb/07 10:23 AM
Assuming we have a true solution for this problem, we point the user to the docs and ask if this resolves their problem.
Sound reasonable?

Werner Guttmann - 18/Feb/07 03:39 PM
Yes, does sound reasonable.

Werner Guttmann - 30/Jun/07 04:30 PM
Eddie, is there anything we should do to e.g improve the docs ?