Unfortunately, I can't wait for an official fix, so could you or somebody else on this mailing list suggest a file/directory name that I may look at to try and fix the problem myself?
From: Keith Visco <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [castor-dev] sourceGenerator question Date: Mon, 12 Jan 2004 16:12:10 -0600
Hi Fredo,
That definately sounds like a bug to me. From a quick glance, your schema look ok and the namespace to package mappings look good. It could be an issue with simpleContent extensions and resolving the proper namespace.
You might want to report this using Bugzilla (http://bugzilla.exolab.org)
thanks,
--Keith
Fredo Corleone wrote:
>
> 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
_________________________________________________________________
Find out everything you need to know about Las Vegas here for that getaway. http://special.msn.com/msnbc/vivalasvegas.armx
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
