Yes, I modified my *.xsd as below and the classes generated. I just found it odd that the SourceGenerator would generate source that would not compile, rather than spitting out an error when if encountered an undefined symbol (unsatisfied prototype). Robustness is the key to the success of any software tool!!!!
Thanks for your help!
Scott
<xsd:element name="completion" maxOccurs="unbounded"> <xsd:complexType> <sequence> <xsd:element name="name" type="xsd:string"/> <xsd:element name="nextStep" type="xsd:string"/> <xsd:element name="terminal" type="xsd:boolean"/> <xsd:element name="rollback" type="xsd:boolean"/> </sequence> </xsd:complexType> </xsd:element>
From: sire chembiparambil <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [castor-dev] SourceGenerator not generating all classes... Date: Fri, 25 Jul 2003 14:26:45 -0400
Scott,
Have you tried defining the type attribute for the "Completion" element ? eg. <xsd:element name="completion" type="xsd:string" maxOccurs="unbounded "/>
Sire Chembiparambil
"Scott Schenksj"
<[EMAIL PROTECTED] To: [EMAIL PROTECTED]
.com> cc:
Subject: [castor-dev] SourceGenerator not generating all classes...
07/25/2003 01:55
PM
Please respond to
castor-dev
Hello All,
When I run the enclosed "xsd" through builder.SourceGenerator, I get the following classes:
Workflow.java WorkflowDescriptor.java Step.java StepDescriptor.java
Which are dependent on "Completion", but I'm missing the following source files (and thus I can not compile)
Completion.java CompletionDescriptor.java
Does anyone know if there is an option I need to set to generate ***all*** the required classes, or is this a bug?
Thanks,
Scott
<?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2001/XMLSchema"> <xsd:element name="workflow"> <xsd:complexType> <xsd:sequence> <xsd:element name="identifier" type="xsd:string"/> <xsd:element name="init-class" type="xsd:string"/> <xsd:element name="first-step" type="xsd:string"/> <xsd:element name="step" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="completion" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string"/>
<xsd:attribute name="class" type="xsd:string"/>
</xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema>
_________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev