Hi,

New to castor, pretty slick tool. I am reworking a
build process at my present job. The old process uses
a number of .xsd files to generate a few hundred
classes. In the new process I am not doing anything
different in the call to use castor via the ant
script. I pass in the location of the xsd file, the
dest directory, the package name, -i -f and so on,
nothing has changed. The only thing that changed is
the location of the .xsd files, but I have looked at
them and see no use of ../ or any specific path
information.

Below is a snippet of the xsd file. It should generate
a few other classes but they are not being generated.
I have looked in the docs for the castor-binding.xml,
castorbuilder.properties and such and can't find much
in the way of figuring out if its used all the time or
not. We do have a castor-bindings.xml in the root dir
of the old project where the build.xml is also at.
There is not an explicit setting specifying this file,
so is castor somehow magically finding it in the old
build and not in my new build perhaps? Both are in the
root dirs with the build.xml.

I can't see any other reason why it produces the
initial complexTypes, but the internal xsd:element
types that refer to other complex types are not
producing any java source files.

Below is a simple snippet. The element 'a', cType and
iType all get generated as classes. However, in the
'a' below, you see that i1 and c1 refer to iType and
cType. In the old build, there would be two classes,
i1, and c1 generated as well. In the new build, they
are not generated at all. Thus, some of our hand-coded
stuff refers to i1 and c1 and is no longer compiling
because they are not available.

Appreciate any thoughts on why these sub-types are not
generating any source files.




   <xsd:element name="a">
      <xsd:complexType>
         <xsd:sequence>
            <xsd:element name="n1" type="xsd:string"/>
            <xsd:element name="t1" 
type="xsd:string"/>
            <xsd:element name="h1" type="xsd:boolean"
minOccurs="0" default="false"/>
            <xsd:element name="d1"  type="xsd:string"
minOccurs="0"/>
            <xsd:element name="i1" type="iType"/>
            <xsd:element name="c1" type="cType"
minOccurs="0"/>
         </xsd:sequence>
         <xsd:attribute name="s1" type="xsd:boolean"
default="false"/>
     </xsd:complexType>
   </xsd:element>

   <xsd:complexType name="cType">
      <xsd:sequence>
         <xsd:element name="i" type="xsd:string"
minOccurs="0" maxOccurs="unbounded"/>
      </xsd:sequence>
   </xsd:complexType>


   <xsd:complexType name="iType">
      <xsd:sequence>
         <xsd:element name="i" type="xsd:string"/>
         <xsd:element name="f" type="xsd:string"/>
         <xsd:element name="p" type="xsd:string"/>
         <xsd:element name="h"  type="xsd:string"/>
      </xsd:sequence>
   </xsd:complexType>



Thanks.


                
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail



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

Reply via email to