I'm using castor-0.9.5.2 that's officially available from the castor website.


From: "Arnaud Blandin" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] sourceGenerator question
Date: Tue, 13 Jan 2004 13:02:12 +0100

Hi Fredo,

What is the version of Castor you are using?

Arnaud


This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, dissemination of this communication is prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately.



> -----Original Message-----
> From: Fredo Corleone [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 12, 2004 10:32 PM
> To: [EMAIL PROTECTED]
> Subject: [castor-dev] sourceGenerator question
>
>
> I have 2 files x.xsd and y.xsd and generate code using:
> java org.exolab.castor.builder.SourceGenerator -i x.xsd -dest ddir
>
> A file Tye.java is generated in directory ddir/a/x. This file has the
> following line in it:
> private a.x.types.Ttye _content;
>
> But directory ddir/a/x/types is not created by the srcGen
> program, so the
> Tye.java file does not compile. I expected the code in Tye.java to be
> something like:
> private a.y.types.Ttye _content;
>
> What do I need to do to generate code that complies and runs
> correctly?
>
>
> --------------x.xsd-----------
> <?xml version="1.0"?>
> <xsd:schema targetNamespace="urn:a:x"
> xmlns="urn:a:x"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:f="urn:a:y"
> elementFormDefault="qualified"
> attributeFormDefault="qualified" xml:lang="en-US">
>    <xsd:import namespace="urn:a:y" schemaLocation="y.xsd"/>
>
>    <xsd:element name="tye" nillable="true">
>       <xsd:complexType>
>          <xsd:simpleContent>
>             <xsd:extension base="f:ttye">
>                <xsd:attribute name="ff-seq"
> type="xsd:integer" fixed="3"/>
>             </xsd:extension>
>          </xsd:simpleContent>
>       </xsd:complexType>
>    </xsd:element>
> </xsd:schema>
> -----end x.xsd------------
> -----y.xsd---------
> <?xml version="1.0" ?>
> <xsd:schema targetNamespace="urn:a:y" xml:lang="en-US"
> xmlns="urn:a:y" xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> elementFormDefault="qualified" attributeFormDefault="qualified">
>
>   <xsd:simpleType name="ttye">
>     <xsd:restriction base="xsd:string">
>       <xsd:enumeration value="LINE"/>
>       <xsd:enumeration value="POINT"/>
>       <xsd:enumeration value="CIRCLE"/>
>       <xsd:enumeration value="ORBIT"/>
>       <xsd:enumeration value="POLYGON"/>
>     </xsd:restriction>
>   </xsd:simpleType>
>
> </xsd:schema>
> ---------end y.xsd-------------
> --------castorbuilder.properties------------
> org.exolab.castor.builder.javaclassmapping=type
> org.exolab.castor.builder.nspackages=\
>   urn:a:x=a.x,\
>   urn:a:y=a.y
>
> _________________________________________________________________
> High-speed users-be more efficient online with the new MSN
> Premium Internet
> Software. http://join.msn.com/?pgmarket=en-us&page=byoa/prem&ST=1
>
> -----------------------------------------------------------
> 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


_________________________________________________________________
Learn how to choose, serve, and enjoy wine at Wine @ MSN. http://wine.msn.com/


----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev




Reply via email to