Hi Werner, I uploaded a couple of the files I had generated. I've checked out the trunk "fresh" and am still having the problem. I was wondering if you could check your generated files against mine, or send me yours so I can do so. I'm trying to pin down whether it is the generation or the marshaling that is causing the problem.
One interesting observation I had is that marshal generates the two sequences separately, rather than just once -- one of which it does as part of the choice, the other of which it does separately. When I step through the marshal routine, I see that it sees three descriptors. I don't fully understand what is happening in the routine, but it seems to me that it should ignore the sequences on the top-level pass and then recurse into them as part of the choice evaluation. And the choice itself should be ignored from the naming perspective, yet it is not. -Al -----Original Message----- From: Werner Guttmann (JIRA) [mailto:[EMAIL PROTECTED] Sent: Friday, September 28, 2007 4:24 AM To: Funk, Al Subject: [jira] Commented: (CASTOR-2173) Castor incorrectly generates XML for choice/selection objects [ http://jira.codehaus.org/browse/CASTOR-2173?page=com.atlassian.jira.plug in.system.issuetabpanels:comment-tabpanel#action_108512 ] Werner Guttmann commented on CASTOR-2173: ----------------------------------------- And by adding the following attribute definition to your XML schema instance, ... {noformat} elementFormDefault="qualified" {noformat} the output is changed to ... {noformat} <?xml version="1.0" encoding="UTF-8"?> <OFX xmlns="http://ofx.net/types/2003/04"> <SIGNONMSGSRQV1>teststring2</SIGNONMSGSRQV1> <BILLPAYMSGSRQV1>teststring1</BILLPAYMSGSRQV1> </OFX> {noformat} > Castor incorrectly generates XML for choice/selection objects > ------------------------------------------------------------- > > Key: CASTOR-2173 > URL: http://jira.codehaus.org/browse/CASTOR-2173 > Project: castor > Issue Type: Bug > Components: XML code generator > Affects Versions: 1.1.3 > Environment: Win XP, Java 5 > Reporter: Al Funk > Attachments: XMLGenTest.java, XSL_Test.xsd > > > When generating/marshaling XML for a schema using a choice, XML is generated that does not represent elements in the schema. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

