Daniel, can you please create a new issue at
http://jira.codehaus.org/browse/CASTOR and attach all relevant files, incl. any instructions that might be helpful for us to reproduce your problem. Thanks in advance Werner Daniel Nilsson wrote: > Hi Werner and thank you so much for helping me! > > I think I understand what you mean, and it makes sense to me. > > When looking at my original schemas, the thing is that I use types from > this namespace and they aren't generated correct in the Java sources. > The generator generated an Object-class for the simple types. like new > java.lang.Object("en-US"); > So the problem is perhaps not that the types aren't generated, but that > I get uncompileable code. > I attach an truncated example of my xsd and it is the > systemEnvironmentCode and languageCode which aren't generated. > (generated sources also included) > > Regards > Daniel > > > > ------------------------------------------------------------------------ > *Från:* Werner Guttmann [mailto:[EMAIL PROTECTED] > *Skickat:* den 12 januari 2007 14:19 > *Till:* [email protected] > *Ämne:* RE: [castor-user] source code generation for OAGIS > > Daniel, > > after a bit of source code readingh and test case writing, here's > the complete story. For most of the <simpletype> definitions (but > enumerations), Castor will not create Java classes perse. But when > you start using those <simpleType> definitions in your XMl schema > (as part of element or attribute definitions), Castor will use the > information associatd with those simple type definions when creating > the field validators for the element/attribute in question. > > Does this sort of address your concerns ? > > Werner > > > ------------------------------------------------------------------------ > *From:* Daniel Nilsson [mailto:[EMAIL PROTECTED] > *Sent:* Freitag, 12. Jänner 2007 09:38 > *To:* [email protected] > *Subject:* [castor-user] source code generation for OAGIS > > Hi! > Is there anyone who uses the SourceCode generation, and the > marshalling/unmarshalling-framework with the OAGIS schemas? Does > it work? > I have tried to generate some java-sources but I can't get it to > generate the sources for the imported namespace > http://www.openapplications.org/oagis/9/qualifieddatatypes/1.1 > > My original base-schema uses three imports (with namespaces) in > it, and two of them are generated, but the third (above > namespace) is skipped. > I use a binding file in which I define the namespace-package > relation for all imported schemas, and I use the > generateIMportedSchemas flag. > Castor doesn't say anything about any errors, it just doesn't > generate the classes. > > Even if I try to only generate the sources for the Qualified > schema I can't get any data. > I attached this schema, together with imported schemas and the > binding-file (see qualified directory) > Does OAGIS use unsupported definitions? > > > Anybody have any ideas? > > Regards > Daniel > > > ------------------------------------------------------------------------ > > --------------------------------------------------------------------- > 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

