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
