Thanks. It is the exact same issue. -----Original Message----- From: Fuhwei Lwo [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 14, 2007 9:54 AM To: [email protected] Subject: Re: XSD2JavaGenerator
Your problem seems like T-1505 at https://issues.apache.org/jira/browse/TUSCANY-1505 Let me ask David, the JIRA reporter, about the possible solution. Murtaza Goga <[EMAIL PROTECTED]> wrote: We are attempting to migrate to the current release (1.0 incubating) and we are running into an issue with the static code generator. The init operation in the factory implementation does not compile, the generated code uses the fully qualified package name as a variable name. The options going into the generator: -schemaNamespace all -namespaceInfo.properties Concrete_Schema.xsd The relevant files: namespaceInfo.properties urn:mycompany.com/base;com.mycompany.base.dto urn:mycompany.com/concrete;com.mycompany.concrete.dto Base_Schema.xsd targetNamespace="urn:mycompany.com/base" elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:base="urn:mycompany.com/base"> name="letters" type="base:FormLetter" /> name="FormLetter" mixed="true"> name="date" minOccurs="0" type="xsd:string" /> Concrete_Schema.xsd targetNamespace="urn:mycompany.com/concrete" elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:base="urn:mycompany.com/base" xmlns:concrete="urn:mycompany.com/concrete"> namespace="urn:mycompany.com/base" schemaLocation="Base_Schema.xsd" /> name="contents" type="xsd:string"> The generatae public static DtoFactoryImpl init() { ... // Initialize dependent packages Compile error below: com.mycompany.base.dto.DtoFactory com.mycompany.base.dto.DtoFactoryInstance = com.mycompany.base.dto.DtoFactory.INSTANCE; ... } Any workarounds would be greatly appreciated. Thanks, Murtaza. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
